SOAPHttpAdaptor

public abstract class SOAPHttpAdaptor extends HttpRequestAdaptor implements SOAPRequestListener

SOAPHttpAdaptor is both an HttpRequestListener and SOAPRequestListener. It is an adaptor for handling SOAP on Http requests.

Author:Hugo Y. K. Lam

Fields

msgFactory

protected MessageFactory msgFactory

A SOAP message factory.

soapFactory

protected SOAPFactory soapFactory

A SOAP factory.

Methods

isCacheEnabled

protected boolean isCacheEnabled()

Checks if cache in memory should be enabled. If this method returns false, it indicates that the SOAP request object will not provide a byte array cache of the original SOAP request.

Returns:true if cache in memory should be enabled.

isSOAPFaultEnabled

protected boolean isSOAPFaultEnabled()

Checks if errors in the request process should be reported as a SOAP fault to the client.

Returns:true if SOAP fault reporting is enabled.

listenerCreated

public void listenerCreated()

Creates a new instance of MessageFactory.

Throws:

See also: hk.hku.cecid.piazza.commons.servlet.RequestListener.listenerCreated()

listenerDestroyed

public void listenerDestroyed()

Cleans up resources.

See also: hk.hku.cecid.piazza.commons.servlet.RequestListener.listenerDestroyed()

processRequest

public String processRequest(HttpServletRequest request, HttpServletResponse response)

Processes the HTTP request and transforms it into a SOAP request.

See also: hk.hku.cecid.piazza.commons.servlet.http.HttpRequestListener.processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)