FileDocCategorySizeDatePackage
SOAPWrapper.javaAPI DocGlassfish v2 API4641Fri May 04 22:30:28 BST 2007com.sun.enterprise.jbi.serviceengine.util.soap

SOAPWrapper

public class SOAPWrapper extends Object
This object provides a wrapper for SOAP Messages and also contains status information. The wrapper allows clients to attach properties to it.
author
Sun Microsystems, Inc.

Fields Summary
private Map
mMap
A place holder to hold additional name-value pairs.
private SOAPMessage
mMessage
Contains handle to the soap message.
private int
mStatus
Request Status.
private String
mServiceURL
Internal handle to the service URL.
Constructors Summary
public SOAPWrapper(SOAPMessage soapMessage)
Creates a new instance of SOAPWrapper.

param
soapMessage - soap message

        mMessage = soapMessage;
        mMap = new HashMap();
    
Methods Summary
public javax.xml.soap.SOAPMessagegetMessage()
Gets the soap message.

return
soap message instance

        return mMessage;
    
public java.util.IteratorgetProperties()
Get the property list.

return
a list of property names.

        return mMap.keySet().iterator();
    
public java.lang.StringgetServiceURL()
Gets Service URL.

return
service URL

        return mServiceURL;
    
public intgetStatus()
Gets status.

return
status information

        return mStatus;
    
public java.lang.ObjectgetValue(java.lang.String propertyName)
Sets a property to the SOAP Wrapper.

param
propertyName property name
return
property value

        return mMap.get(propertyName);
    
public voidsetServiceURL(java.lang.String serviceURL)
Sets Service URL.

param
serviceURL service url.

        mServiceURL = serviceURL;
    
public voidsetStatus(int status)
Sets status.

param
status request status

        mStatus = status;
    
public voidsetValue(java.lang.String propertyName, java.lang.Object value)
Sets a property to the SOAP Wrapper.

param
propertyName property name
param
value property value

        mMap.put(propertyName, value);