Package org.apache.axis2.transport.base
Class ProtocolEndpoint
java.lang.Object
org.apache.axis2.transport.base.ProtocolEndpoint
- Direct Known Subclasses:
AbstractPollTableEntry,DatagramEndpoint
Describes a protocol specific endpoint. This might be a TCP/UDP port, a mail account,
a JMS destination, etc. Typically, a protocol specific endpoint is mapped to a
service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.axis2.context.MessageContextprotected final org.apache.axis2.context.ConfigurationContextGet the Axis2 configuration context.Get a short description of this endpoint suitable for inclusion in log messages.abstract org.apache.axis2.addressing.EndpointReference[]getEndpointReferences(org.apache.axis2.description.AxisService service, String ip) Get the endpoint references for this protocol endpoint.final AbstractTransportListenerEx<?>final org.apache.axis2.description.AxisServicefinal StringGet the name of the service to which messages received by this endpoint are pre-dispatched.abstract booleanloadConfiguration(org.apache.axis2.description.ParameterInclude params) Configure the endpoint based on the provided parameters.
-
Constructor Details
-
ProtocolEndpoint
public ProtocolEndpoint()
-
-
Method Details
-
getListener
-
getService
public final org.apache.axis2.description.AxisService getService() -
getServiceName
Get the name of the service to which messages received by this endpoint are pre-dispatched.- Returns:
- the name of the service, or
nullif message are not pre-dispatched
-
getConfigurationContext
protected final org.apache.axis2.context.ConfigurationContext getConfigurationContext()Get the Axis2 configuration context. This is a convenience method that can be used by subclasses to get theConfigurationContextobject from the listener.- Returns:
- the configuration context
-
loadConfiguration
public abstract boolean loadConfiguration(org.apache.axis2.description.ParameterInclude params) throws org.apache.axis2.AxisFault Configure the endpoint based on the provided parameters. If no relevant parameters are found, the implementation should returnfalse. An exception should only be thrown if there is an error or inconsistency in the parameters.- Parameters:
params- The source of the parameters to configure the endpoint. If the parameters are defined on a service, this will be anAxisServiceinstance.- Returns:
trueif the parameters contained the required configuration information and the endpoint has been configured,falseif the no configuration for the endpoint is present in the parameters- Throws:
org.apache.axis2.AxisFault- if configuration information is present, but there is an error or inconsistency in the parameters
-
getEndpointReferences
public abstract org.apache.axis2.addressing.EndpointReference[] getEndpointReferences(org.apache.axis2.description.AxisService service, String ip) throws org.apache.axis2.AxisFault Get the endpoint references for this protocol endpoint.- Parameters:
service- The service to build the EPR for. IfgetService()returns a non null value, then it has the same value as this parameter, which is never null.ip- The host name or IP address of the local host. The implementation should use this information instead ofInetAddress.getLocalHost(). The value of this parameter may benull, in which case the implementation should useUtils.getIpAddress(org.apache.axis2.engine.AxisConfiguration).- Returns:
- an array of endpoint references
- Throws:
org.apache.axis2.AxisFault- See Also:
-
TransportListener.getEPRsForService(String, String)
-
getDescription
Get a short description of this endpoint suitable for inclusion in log messages.- Returns:
- a short description of the endpoint
-
createMessageContext
public org.apache.axis2.context.MessageContext createMessageContext() throws org.apache.axis2.AxisFault- Throws:
org.apache.axis2.AxisFault
-