|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.transport.nhttp.HttpCoreNIOListener
public class HttpCoreNIOListener
NIO transport listener for Axis2 based on HttpCore and NIO extensions
Field Summary |
---|
Fields inherited from interface org.apache.axis2.transport.TransportListener |
---|
HOST_ADDRESS, PARAM_PORT |
Constructor Summary | |
---|---|
HttpCoreNIOListener()
|
Method Summary | |
---|---|
void |
destroy()
|
EndpointReference |
getEPRForService(java.lang.String serviceName,
java.lang.String ip)
Return the EPR for the given service (implements deprecated method temporarily) |
EndpointReference[] |
getEPRsForService(java.lang.String serviceName,
java.lang.String ip)
Return the EPRs for the given service over this transport |
protected org.apache.http.nio.reactor.IOEventDispatch |
getEventDispatch(org.apache.http.nio.NHttpServiceHandler handler,
javax.net.ssl.SSLContext sslContext,
org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslioSessionHandler,
org.apache.http.params.HttpParams params)
|
protected java.lang.String |
getServiceEPRPrefix(ConfigurationContext cfgCtx,
java.lang.String host,
int port)
Return the EPR prefix for services made available over this transport |
SessionContext |
getSessionContext(MessageContext messageContext)
TODO: Return session context from transport, this is an improvement in axis2 1.2 and is not currently supported |
protected javax.net.ssl.SSLContext |
getSSLContext(TransportInDescription transportIn)
Create the SSLContext to be used by this listener |
void |
init(ConfigurationContext cfgCtx,
TransportInDescription transprtIn)
Initialize the transport listener, and execute reactor in new seperate thread |
void |
start()
Start the transport listener on a new thread |
void |
stop()
Stop the listener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpCoreNIOListener()
Method Detail |
---|
protected org.apache.http.nio.reactor.IOEventDispatch getEventDispatch(org.apache.http.nio.NHttpServiceHandler handler, javax.net.ssl.SSLContext sslContext, org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslioSessionHandler, org.apache.http.params.HttpParams params)
public void init(ConfigurationContext cfgCtx, TransportInDescription transprtIn) throws AxisFault
init
in interface TransportListener
cfgCtx
- the Axis2 configuration contexttransprtIn
- the description of the http/s transport from Axis2 configuration
AxisFault
- on errorprotected java.lang.String getServiceEPRPrefix(ConfigurationContext cfgCtx, java.lang.String host, int port)
protected javax.net.ssl.SSLContext getSSLContext(TransportInDescription transportIn) throws AxisFault
transportIn
-
AxisFault
public void start() throws AxisFault
start
in interface TransportListener
AxisFault
public void stop() throws AxisFault
stop
in interface TransportListener
AxisFault
- on errorpublic EndpointReference getEPRForService(java.lang.String serviceName, java.lang.String ip) throws AxisFault
getEPRForService
in interface TransportListener
AxisFault
public EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip) throws AxisFault
getEPRsForService
in interface TransportListener
serviceName
- name of the serviceip
- IP address
AxisFault
- on errorpublic SessionContext getSessionContext(MessageContext messageContext)
getSessionContext
in interface TransportListener
messageContext
-
public void destroy()
destroy
in interface TransportListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |