FileDocCategorySizeDatePackage
GlobalMessageListener.javaAPI DocGlassfish v2 API4670Fri May 04 22:32:42 BST 2007com.sun.enterprise.webservice.monitoring

GlobalMessageListener

public interface GlobalMessageListener
This interface permits implementors to register a global message listener which will be notified for all the web services requests and responses on installed and enabled Web Services. Each invocation will be notified through founr callbacks (preProcessRequest, processRequest, processResponse, postProcessResponse).
author
Jerome Dochez

Fields Summary
Constructors Summary
Methods Summary
public voidpostProcessResponse(java.lang.String mid, TransportInfo info)
Callback when a web service response has finished being processed by the container and was sent back to the client

param
mid returned by the preProcessRequest call
param
info the response transport dependent information

public java.lang.StringpreProcessRequest(Endpoint endpoint)
Callback when a web service request entered the web service container and before any system processing is done.

param
endpoint is the endpoint the web service request is targeted to
return
a message ID to trace the request in the subsequent callbacks or null if this invocation should not be traced further.

public voidprocessRequest(java.lang.String mid, com.sun.xml.rpc.spi.runtime.SOAPMessageContext ctx, TransportInfo info)
Callback when a 1.X web service request is about the be delivered to the Web Service Implementation Bean.

param
mid message ID returned by preProcessRequest call
param
trace the jaxrpc message trace, transport dependent

public voidprocessRequest(java.lang.String mid, com.sun.enterprise.webservice.SOAPMessageContext ctx, TransportInfo info)
Callback when a 2.X web service request is about the be delivered to the Web Service Implementation Bean.

param
mid message ID returned by preProcessRequest call
param
trace the jaxrpc message trace, transport dependent

public voidprocessResponse(java.lang.String mid, com.sun.xml.rpc.spi.runtime.SOAPMessageContext ctx)
Callback when a 1.X web service response was returned by the Web Service Implementation Bean

param
mid message ID returned by the preProcessRequest call
param
trace jaxrpc message trace, transport dependent.

public voidprocessResponse(java.lang.String mid, com.sun.enterprise.webservice.SOAPMessageContext ctx)
Callback when a 2.X web service response was returned by the Web Service Implementation Bean

param
mid message ID returned by the preProcessRequest call
param
trace jaxrpc message trace, transport dependent.