FileDocCategorySizeDatePackage
SOAPMessageContext_2_0.javaAPI DocGlassfish v2 API4661Fri May 04 22:24:40 BST 2007com.sun.enterprise.admin.wsmgmt

SOAPMessageContext_2_0

public class SOAPMessageContext_2_0 extends Object implements SOAPMessageContext
SOAP Message Context. This encapsulates the required data for web services management either from JAXWS 1.0 or 2.0 MessageContext.

Fields Summary
private com.sun.enterprise.webservice.SOAPMessageContext
_smc
Constructors Summary
public SOAPMessageContext_2_0(com.sun.enterprise.webservice.SOAPMessageContext smc)
Constructed from JAXWS 2.0 MessageContext

param
msg the detail message for this exception

        if (smc == null) {
            throw new IllegalArgumentException();
        }
        _smc = smc;
    
Methods Summary
public java.lang.StringgetHTTPRequestHeaders()
Gets the HTTP Request headers in the message.

return
the HTTP Request headers in the message.

        Map headerMap = (Map)_smc.get(MessageContext.HTTP_REQUEST_HEADERS);
        return Utils.getString(headerMap);
    
public java.lang.StringgetHTTPResponseHeaders()
Gets the HTTP Response headers in the message.

return
the HTTP Response headers in the message.

        Map headerMap = (Map)_smc.get(MessageContext.HTTP_RESPONSE_HEADERS);
        return Utils.getString(headerMap);
    
public javax.xml.soap.SOAPMessagegetMessage()
Gets the SOAPMessage for this web service invocation.

return
SOAPMessage for this web service invocation

        return _smc.getMessage();
    
public java.lang.ObjectgetProperty(java.lang.String name)
Gets the PropertyNames for this web service invocation.

return
PropertyNames for this web service invocation

        // convert jax-rpc property to jax ws property
        if (( name != null) && (
        "com.sun.xml.rpc.server.http.HttpServletRequest".equals(name))) {
            name = MessageContext.SERVLET_REQUEST;
        }
        return _smc.get(name);
    
public java.util.IteratorgetPropertyNames()
Gets the PropertyNames for this web service invocation.

return
PropertyNames for this web service invocation

        Set keySet = _smc.keySet();
        if ( keySet != null) {
            return keySet.iterator();
        } else {
            return null;
        }
    
public voidsetMessage(javax.xml.soap.SOAPMessage msg)
Sets the SOAPMessage in the message context.

param
msg the SOAPMessage to be set in the message context

            _smc.setMessage(msg);