com.cafesoft.core.message
Class EndPointRegistration

java.lang.Object
  |
  +--com.cafesoft.core.message.EndPointRegistration
All Implemented Interfaces:
Recyclable

public class EndPointRegistration
extends Object
implements Recyclable

Encapsulates information about a remote EndPoint like a MessageReceiver, MessageSender, MessageService, etc. Information registered with the remote EndPoint includes:

RemoteEndPointRegistration instances are normally managed within a RemoteEndPointRegistry.

Since:
2/27/02

Constructor Summary
EndPointRegistration(EndPoint endPoint, Connection connection, String contentType)
          Create a new RemoteEndPointRegistration.
 
Method Summary
 Connection getConnection()
          Get the Connection associated with the registration.
 String getContentType()
          Get the content type.
 EndPoint getEndPoint()
          Get the EndPoint associated with the registration.
 void recycle()
          Recycle the resources of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndPointRegistration

public EndPointRegistration(EndPoint endPoint,
                            Connection connection,
                            String contentType)
                     throws ProtocolException
Create a new RemoteEndPointRegistration.

Parameters:
endPoint - the EndPoint, which must be remote.
connection - the Connection associated with the remote EndPoint.
contentType - the content type of the Messages send or received by the remote EndPoint.
Throws:
ProtocolException - if any parameter is invalid or incomplete.
Method Detail

recycle

public void recycle()
Recycle the resources of this object.

Specified by:
recycle in interface Recyclable

getEndPoint

public EndPoint getEndPoint()
Get the EndPoint associated with the registration.

Returns:
the EndPoint

getConnection

public Connection getConnection()
Get the Connection associated with the registration.

Returns:
the local Connection by which the remote EndPoint sends or receives messages

getContentType

public String getContentType()
Get the content type.

Returns:
the content type associated with the remote EndPoint


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.