public class AxisServletListener extends Object implements TransportListener
TransportListener
implementation for AxisServlet
. There will be one instance
of this class for each protocol (HTTP and/or HTTPS) accepted by the servlet.HOST_ADDRESS, PARAM_PORT
Constructor and Description |
---|
AxisServletListener() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
EndpointReference |
getEPRForService(String serviceName,
String ip) |
EndpointReference[] |
getEPRsForService(String serviceName,
String ip)
Get the endpoint references for a given service.
|
int |
getPort() |
SessionContext |
getSessionContext(MessageContext messageContext)
To get the sessionContext transport dependent manner.
|
void |
init(ConfigurationContext configurationContext,
TransportInDescription transportInDescription) |
void |
setPort(int port) |
void |
start() |
void |
stop() |
public void init(ConfigurationContext configurationContext, TransportInDescription transportInDescription) throws AxisFault
init
in interface TransportListener
AxisFault
public int getPort()
public void setPort(int port)
public void start() throws AxisFault
start
in interface TransportListener
AxisFault
public void stop() throws AxisFault
stop
in interface TransportListener
AxisFault
public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault
TransportListener
getEPRsForService
in interface TransportListener
serviceName
- TODO: this is actually not simply the service name!ip
- The host name or IP address of the local host. The implementation should use
this information instead of InetAddress.getLocalHost()
.
The value of this parameter may be null
, in which case the
implementation should use Utils.getIpAddress(
org.apache.axis2.engine.AxisConfiguration)
.AxisFault
public EndpointReference getEPRForService(String serviceName, String ip) throws AxisFault
getEPRForService
in interface TransportListener
AxisFault
public SessionContext getSessionContext(MessageContext messageContext)
TransportListener
getSessionContext
in interface TransportListener
messageContext
- : MessageContext which has all the relavent datapublic void destroy()
destroy
in interface TransportListener
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.