Class DatagramEndpoint
- java.lang.Object
-
- org.apache.axis2.transport.base.ProtocolEndpoint
-
- org.apache.axis2.transport.base.datagram.DatagramEndpoint
-
- Direct Known Subclasses:
Endpoint
public abstract class DatagramEndpoint extends ProtocolEndpoint
Endpoint description. This class is used by the transport to store information about an endpoint, e.g. the Axis service it is bound to. Transports extend this abstract class to store additional transport specific information, such as the port number the transport listens on.
-
-
Constructor Summary
Constructors Constructor Description DatagramEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
MetricsCollector
getMetrics()
boolean
loadConfiguration(ParameterInclude params)
Configure the endpoint based on the provided parameters.void
setMetrics(MetricsCollector metrics)
-
Methods inherited from class org.apache.axis2.transport.base.ProtocolEndpoint
createMessageContext, getConfigurationContext, getDescription, getEndpointReferences, getListener, getService, getServiceName
-
-
-
-
Method Detail
-
getContentType
public String getContentType()
-
getMetrics
public MetricsCollector getMetrics()
-
setMetrics
public void setMetrics(MetricsCollector metrics)
-
loadConfiguration
public boolean loadConfiguration(ParameterInclude params) throws AxisFault
Description copied from class:ProtocolEndpoint
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.- Specified by:
loadConfiguration
in classProtocolEndpoint
- Parameters:
params
- The source of the parameters to configure the endpoint. If the parameters are defined on a service, this will be anAxisService
instance.- Returns:
true
if the parameters contained the required configuration information and the endpoint has been configured,false
if 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
-
-