|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.endpoints.AbstractEndpoint
public abstract class AbstractEndpoint
This is the default implementation of Endpoint, which provides a convenient base for behavior and associations common to all endpoints. These properties that show up in endpoint configuration are only used by the client, therefore they have to be set on the appropriate client classes: connect-timeout-seconds set on Channel.
Endpoint| Field Summary | |
|---|---|
static String |
LOG_CATEGORY
Log category for AbstractEndpoint. |
| Constructor Summary | |
|---|---|
AbstractEndpoint()
Constructs an unmanaged AbstractEndpoint. |
|
AbstractEndpoint(boolean enableManagement)
Constructs an AbstractEndpoint with the indicated management. |
|
| Method Summary | |
|---|---|
ConfigMap |
describeEndpoint()
Returns a ConfigMap of endpoint properties that the client
needs. |
String |
getClientType()
Returns the corresponding client channel type for the endpoint. |
Class |
getFlexClientOutboundQueueProcessorClass()
Returns the FlexClientOutboundQueueProcessorClass of the endpoint. |
ConfigMap |
getFlexClientOutboundQueueProcessorConfig()
Returns the properties for the FlexClientOutboundQueueProcessor of the endpoint. |
MessageBroker |
getMessageBroker()
Returns the MessageBroker of the AbstractEndpoint. |
double |
getMessagingVersion()
Returns the highest messaging version currently available via this endpoint. |
int |
getPort()
Returns the port of the url of the endpoint. |
SecurityConstraint |
getSecurityConstraint()
Returns the SecurityConstraint of the Endpoint. |
SerializationContext |
getSerializationContext()
Returns the SerializationContext of the endpoint. |
Server |
getServer()
Returns the Server that the endpoint is using; null if
no server has been assigned. |
TypeMarshaller |
getTypeMarshaller()
Returns the TypeMarshaller of the endpoint. |
String |
getUrl()
Returns the url of the endpoint. |
void |
initialize(String id,
ConfigMap properties)
Initializes the Endpoint with the properties. |
boolean |
isSecure()
Determines whether the endpoint is secure or not. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Default implementation of the Endpoint service method. |
Message |
serviceMessage(Message message)
Typically invoked by subclasses, this method transforms decoded message data into the appropriate Message object and routes the Message to the endpoint's broker. |
void |
setClientType(String type)
Sets the corresponding client channel type for the endpoint. |
void |
setFlexClientOutboundQueueProcessorClass(Class flexClientOutboundQueueProcessorClass)
Sets the the FlexClientOutboundQueueProcessor of the endpoint. |
void |
setFlexClientOutboundQueueProcessorConfig(ConfigMap flexClientOutboundQueueProcessorConfig)
Sets the properties for the FlexClientOutboundQueueProcessor of the endpoint. |
void |
setId(String id)
Sets the id of the AbstractEndpoint. |
void |
setMessageBroker(MessageBroker broker)
Sets the MessageBroker of the AbstractEndpoint. |
void |
setSecurityConstraint(SecurityConstraint securityConstraint)
Sets the SecurityConstraint of the Endpoint. |
void |
setSerializationContext(SerializationContext serializationContext)
Sets the SerializationContext of the endpoint. |
void |
setServer(Server server)
Sets the Server that the endpoint will use. |
void |
setTypeMarshaller(TypeMarshaller typeMarshaller)
Sets the TypeMarshaller of the endpoint. |
FlexClient |
setupFlexClient(Message message)
Utility method that endpoint implementations (or associated classes) should invoke when they receive an incoming message from a client but before servicing it. |
FlexClient |
setupFlexClient(String id)
Utility method that endpoint implementations (or associated classes) should invoke when they receive an incoming message from a client but before servicing it. |
void |
setUrl(String url)
Sets the url of the endpoint. |
void |
start()
Starts the endpoint if its associated MessageBroker is started,
and if the endpoint is not already running. |
void |
stop()
Stops the endpoint if it's running. |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface flex.messaging.endpoints.Endpoint |
|---|
getId, isStarted |
| Methods inherited from interface flex.management.Manageable |
|---|
getControl, isManaged, setControl, setManaged |
| Field Detail |
|---|
public static final String LOG_CATEGORY
AbstractEndpoint.
| Constructor Detail |
|---|
public AbstractEndpoint()
AbstractEndpoint.
public AbstractEndpoint(boolean enableManagement)
AbstractEndpoint with the indicated management.
enableManagement - true if the AbstractEndpoint
is manageable; otherwise false.| Method Detail |
|---|
public void initialize(String id,
ConfigMap properties)
Endpoint with the properties.
If subclasses override, they must call super.initialize().
initialize in interface Endpointinitialize in interface FlexConfigurableinitialize in class ManageableComponentid - Id of the Endpoint.properties - Properties for the Endpoint.public void start()
MessageBroker is started,
and if the endpoint is not already running. If subclasses override,
they must call super.start().
start in interface Endpointstart in interface FlexComponentstart in class ManageableComponentpublic void stop()
super.stop().
stop in interface Endpointstop in interface FlexComponentstop in class ManageableComponentpublic String getClientType()
getClientType in interface Endpointpublic void setClientType(String type)
setClientType in interface Endpointtype - The corresponding client channel type for the endpoint.public Class getFlexClientOutboundQueueProcessorClass()
FlexClientOutboundQueueProcessorClass of the endpoint.
FlexClientOutboundQueueProcessorClass of the endpoint.public void setFlexClientOutboundQueueProcessorClass(Class flexClientOutboundQueueProcessorClass)
FlexClientOutboundQueueProcessor of the endpoint.
flexClientOutboundQueueProcessorClass - public ConfigMap getFlexClientOutboundQueueProcessorConfig()
FlexClientOutboundQueueProcessor of the endpoint.
FlexClientOutboundQueueProcessor of the endpoint.public void setFlexClientOutboundQueueProcessorConfig(ConfigMap flexClientOutboundQueueProcessorConfig)
FlexClientOutboundQueueProcessor of the endpoint.
flexClientOutboundQueueProcessorConfig - public void setId(String id)
AbstractEndpoint. If the AbstractEndpoint
has a MessageBroker assigned, it also updates the id in the
MessageBroker.
setId in interface EndpointsetId in class ManageableComponentid - The id of the ManageableComponent.public MessageBroker getMessageBroker()
MessageBroker of the AbstractEndpoint.
getMessageBroker in interface EndpointAbstractEndpoint.public void setMessageBroker(MessageBroker broker)
MessageBroker of the AbstractEndpoint.
Removes the AbstractEndpoint from the old broker
(if there was one) and adds to the list of endpoints in the new broker.
setMessageBroker in interface Endpointbroker - MessageBroker of the AbstractEndpoint.public double getMessagingVersion()
Endpoint
getMessagingVersion in interface Endpointpublic int getPort()
getPort in interface Endpointpublic boolean isSecure()
isSecure in interface Endpointfalse by default.public Server getServer()
null if
no server has been assigned.
getServer in interface Endpoint2public void setServer(Server server)
setServer in interface Endpoint2public SecurityConstraint getSecurityConstraint()
SecurityConstraint of the Endpoint.
getSecurityConstraint in interface EndpointSecurityConstraint of the Endpoint.public void setSecurityConstraint(SecurityConstraint securityConstraint)
SecurityConstraint of the Endpoint.
setSecurityConstraint in interface EndpointsecurityConstraint - public SerializationContext getSerializationContext()
SerializationContext of the endpoint.
SerializationContext of the endpoint.public void setSerializationContext(SerializationContext serializationContext)
SerializationContext of the endpoint.
serializationContext - public TypeMarshaller getTypeMarshaller()
TypeMarshaller of the endpoint.
TypeMarshaller of the endpoint.public void setTypeMarshaller(TypeMarshaller typeMarshaller)
TypeMarshaller of the endpoint.
typeMarshaller - public String getUrl()
getUrl in interface Endpointpublic void setUrl(String url)
setUrl in interface Endpointurl - public ConfigMap describeEndpoint()
ConfigMap of endpoint properties that the client
needs. By default, it returns a ConfigMap of endpoint id
under "id" key, endpoint client type under "type" key and endpoint url
under "uri" key. It also positive connectTimeoutSecond under
"connect-timeout-seconds" key, Subclasses should add additional properties
to super.describeDestination, or return null if they don't want
their properties to be sent to the client.
describeEndpoint in interface Endpoint
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
service method.
Subclasses should call super.service before their custom
code.
service in interface Endpointpublic Message serviceMessage(Message message)
public FlexClient setupFlexClient(Message message)
message - The incoming message to process.
public FlexClient setupFlexClient(String id)
id - The FlexClient id value from the client.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/endpoints/AbstractEndpoint.html