|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.webservices.monitoring.WebServiceEngineImpl
public final class WebServiceEngineImpl
This class acts as a factory to create TracingSystemHandler instances. It also provides an API to register listeners of SOAP messages.
NOT THREAD SAFE: mutable instance variable: globalMessageListener
| Field Summary | |
|---|---|
protected java.util.List<AuthenticationListener> |
authListeners
|
protected java.util.Map<java.lang.String,Endpoint> |
endpoints
|
protected GlobalMessageListener |
globalMessageListener
|
protected java.util.List<EndpointLifecycleListener> |
lifecycleListeners
|
static java.util.logging.Logger |
sLogger
|
| Method Summary | |
|---|---|
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)
|
java.util.Collection<AuthenticationListener> |
getAuthListeners()
|
Endpoint |
getEndpoint(java.lang.String uri)
|
java.util.Iterator<Endpoint> |
getEndpoints()
|
GlobalMessageListener |
getGlobalMessageListener()
get the global listener interface or null if none is set. |
static WebServiceEngineImpl |
getInstance()
|
java.lang.ThreadLocal |
getThreadLocal()
|
boolean |
hasGlobalMessageListener()
|
void |
postProcessResponse(java.lang.String messageID,
TransportInfo info)
Callback when a web service response has finished being processed by the container and was sent back to the client |
java.lang.String |
preProcessRequest(Endpoint endpoint)
Callback when a web service request entered the web service container before any processing is done. |
void |
processRequest(java.lang.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(java.lang.String messageID,
SOAPMessageContext context,
TransportInfo info)
Callback when a 2.0 web service request is received on the endpoint. |
void |
processResponse(java.lang.String messageID,
com.sun.xml.rpc.spi.runtime.SOAPMessageContext context)
Callback when a web service response is received on the endpoint. |
void |
processResponse(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.Map<java.lang.String,Endpoint> endpoints
protected final java.util.List<EndpointLifecycleListener> lifecycleListeners
protected final java.util.List<AuthenticationListener> authListeners
protected volatile GlobalMessageListener globalMessageListener
public static final java.util.logging.Logger sLogger
| Method Detail |
|---|
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(java.lang.String uri)
getEndpoint in interface WebServiceEngineuri - the endpoint selector
public java.util.Iterator<Endpoint> getEndpoints()
getEndpoints in interface WebServiceEnginepublic void removeHandler(WebServiceEndpoint endpointDesc)
public void addLifecycleListener(EndpointLifecycleListener listener)
WebServiceEngine
addLifecycleListener in interface WebServiceEnginelistener - instance to registerpublic void removeLifecycleListener(EndpointLifecycleListener listener)
WebServiceEngine
removeLifecycleListener in interface WebServiceEnginelistener - to unregister.public void addAuthListener(AuthenticationListener listener)
WebServiceEngine
addAuthListener in interface WebServiceEnginelistener - to addpublic void removeAuthListener(AuthenticationListener listener)
WebServiceEngine
removeAuthListener in interface WebServiceEnginelistener - to removepublic java.util.Collection<AuthenticationListener> getAuthListeners()
public GlobalMessageListener getGlobalMessageListener()
WebServiceEngine
getGlobalMessageListener in interface WebServiceEnginepublic void setGlobalMessageListener(GlobalMessageListener listener)
WebServiceEngine
setGlobalMessageListener in interface WebServiceEnginelistener - to registerpublic boolean hasGlobalMessageListener()
public java.lang.String preProcessRequest(Endpoint endpoint)
endpoint - the Endpoint
public void processRequest(java.lang.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(java.lang.String messageID,
com.sun.xml.rpc.spi.runtime.SOAPMessageContext context)
messageID - returned by the preProcessRequest callcontext - jaxrpc message context
public void processRequest(java.lang.String messageID,
SOAPMessageContext context,
TransportInfo info)
messageID - returned by preProcessRequest callcontext - the jaxws message trace, transport dependent.info - the transport info
public void processResponse(java.lang.String messageID,
SOAPMessageContext context)
messageID - returned by the preProcessRequest callcontext - jaxws message context
public void postProcessResponse(java.lang.String messageID,
TransportInfo info)
messageID - returned by the preProcessRequest callpublic java.lang.ThreadLocal getThreadLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||