Package org.apache.axis2.transport.udp
Class Endpoint
- java.lang.Object
-
- org.apache.axis2.transport.base.ProtocolEndpoint
-
- org.apache.axis2.transport.base.datagram.DatagramEndpoint
-
- org.apache.axis2.transport.udp.Endpoint
-
public class Endpoint extends DatagramEndpoint
UDP endpoint description.
-
-
Constructor Summary
Constructors Constructor Description Endpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Get a short description of this endpoint suitable for inclusion in log messages.EndpointReference[]getEndpointReferences(AxisService service, String ip)Get the endpoint references for this protocol endpoint.intgetMaxPacketSize()intgetPort()booleanloadConfiguration(ParameterInclude params)Configure the endpoint based on the provided parameters.-
Methods inherited from class org.apache.axis2.transport.base.datagram.DatagramEndpoint
getContentType, getMetrics, setMetrics
-
Methods inherited from class org.apache.axis2.transport.base.ProtocolEndpoint
createMessageContext, getConfigurationContext, getListener, getService, getServiceName
-
-
-
-
Method Detail
-
getPort
public int getPort()
-
getMaxPacketSize
public int getMaxPacketSize()
-
getDescription
public String getDescription()
Description copied from class:ProtocolEndpointGet a short description of this endpoint suitable for inclusion in log messages.- Overrides:
getDescriptionin classProtocolEndpoint- Returns:
- a short description of the endpoint
-
loadConfiguration
public boolean loadConfiguration(ParameterInclude params) throws AxisFault
Description copied from class:ProtocolEndpointConfigure 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.- Overrides:
loadConfigurationin classDatagramEndpoint- 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:
AxisFault- if configuration information is present, but there is an error or inconsistency in the parameters
-
getEndpointReferences
public EndpointReference[] getEndpointReferences(AxisService service, String ip) throws AxisFault
Description copied from class:ProtocolEndpointGet the endpoint references for this protocol endpoint.- Specified by:
getEndpointReferencesin classProtocolEndpoint- Parameters:
service- The service to build the EPR for. IfProtocolEndpoint.getService()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:
AxisFault- See Also:
TransportListener.getEPRsForService(String, String)
-
-