public final class WebServiceEngineImpl extends Object implements WebServiceEngine
NOT THREAD SAFE: mutable instance variable: globalMessageListener
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthListener(AuthenticationListener listener)
Register a new listener interface to receive authentication
notification.
|
void |
addLifecycleListener(EndpointLifecycleListener listener)
Register a new listener interface to receive notification of
web service endpoint creation and deletion
|
EndpointImpl |
createHandler(com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate parent,
WebServiceEndpoint endpointDesc) |
EndpointImpl |
createHandler(WebServiceEndpoint endpointDesc) |
Collection<AuthenticationListener> |
getAuthListeners() |
Endpoint |
getEndpoint(String uri) |
Iterator<Endpoint> |
getEndpoints() |
GlobalMessageListener |
getGlobalMessageListener()
get the global listener interface or null if none is set.
|
static WebServiceEngineImpl |
getInstance() |
ThreadLocal |
getThreadLocal() |
boolean |
hasGlobalMessageListener() |
void |
postProcessResponse(String messageID,
TransportInfo info)
Callback when a web service response has finished being processed
by the container and was sent back to the client
|
String |
preProcessRequest(Endpoint endpoint)
Callback when a web service request entered the web service container
before any processing is done.
|
void |
processRequest(String messageID,
com.sun.xml.rpc.spi.runtime.SOAPMessageContext context,
TransportInfo info)
Callback when a web service request is received on
the endpoint.
|
void |
processRequest(String messageID,
SOAPMessageContext context,
TransportInfo info)
Callback when a 2.0 web service request is received on
the endpoint.
|
void |
processResponse(String messageID,
com.sun.xml.rpc.spi.runtime.SOAPMessageContext context)
Callback when a web service response is received on the
endpoint.
|
void |
processResponse(String messageID,
SOAPMessageContext context)
Callback when a 2.0 web service response is received on the
endpoint.
|
void |
removeAuthListener(AuthenticationListener listener)
Unregister a listener interface
|
void |
removeHandler(WebServiceEndpoint endpointDesc) |
void |
removeLifecycleListener(EndpointLifecycleListener listener)
Unregister a listener interface
|
void |
setGlobalMessageListener(GlobalMessageListener listener)
Set the unique global listener interface to trace all web service requests
or responses.
|
public static final Logger sLogger
public static WebServiceEngineImpl getInstance()
public EndpointImpl createHandler(WebServiceEndpoint endpointDesc)
public EndpointImpl createHandler(com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate parent, WebServiceEndpoint endpointDesc)
public Endpoint getEndpoint(String uri)
getEndpoint in interface WebServiceEngineuri - the endpoint selectorpublic Iterator<Endpoint> getEndpoints()
getEndpoints in interface WebServiceEnginepublic void removeHandler(WebServiceEndpoint endpointDesc)
public void addLifecycleListener(EndpointLifecycleListener listener)
WebServiceEngineaddLifecycleListener in interface WebServiceEnginelistener - instance to registerpublic void removeLifecycleListener(EndpointLifecycleListener listener)
WebServiceEngineremoveLifecycleListener in interface WebServiceEnginelistener - to unregister.public void addAuthListener(AuthenticationListener listener)
WebServiceEngineaddAuthListener in interface WebServiceEnginelistener - to addpublic void removeAuthListener(AuthenticationListener listener)
WebServiceEngineremoveAuthListener in interface WebServiceEnginelistener - to removepublic Collection<AuthenticationListener> getAuthListeners()
public GlobalMessageListener getGlobalMessageListener()
WebServiceEnginegetGlobalMessageListener in interface WebServiceEnginepublic void setGlobalMessageListener(GlobalMessageListener listener)
WebServiceEnginesetGlobalMessageListener in interface WebServiceEnginelistener - to registerpublic boolean hasGlobalMessageListener()
public String preProcessRequest(Endpoint endpoint)
endpoint - the Endpointpublic void processRequest(String messageID, com.sun.xml.rpc.spi.runtime.SOAPMessageContext context, TransportInfo info)
messageID - returned by preProcessRequest callcontext - the jaxrpc message trace, transport dependent.public void processResponse(String messageID, com.sun.xml.rpc.spi.runtime.SOAPMessageContext context)
messageID - returned by the preProcessRequest callcontext - jaxrpc message contextpublic void processRequest(String messageID, SOAPMessageContext context, TransportInfo info)
messageID - returned by preProcessRequest callcontext - the jaxws message trace, transport dependent.info - the transport infopublic void processResponse(String messageID, SOAPMessageContext context)
messageID - returned by the preProcessRequest callcontext - jaxws message contextpublic void postProcessResponse(String messageID, TransportInfo info)
messageID - returned by the preProcessRequest callpublic ThreadLocal getThreadLocal()
Copyright © 2017. All rights reserved.