1 3 11 package com.sun.enterprise.jbi.serviceengine.util.soap; 12 13 import java.util.HashMap ; 14 import java.util.Iterator ; 15 import java.util.Map ; 16 17 import javax.xml.soap.SOAPMessage ; 18 19 20 26 public class SOAPWrapper 27 { 28 31 private Map mMap; 32 33 36 private SOAPMessage mMessage; 37 38 41 private int mStatus; 42 43 46 private String mServiceURL; 47 48 53 public SOAPWrapper(SOAPMessage soapMessage) 54 { 55 mMessage = soapMessage; 56 mMap = new HashMap (); 57 } 58 59 64 public void setStatus(int status) 65 { 66 mStatus = status; 67 } 68 69 74 public int getStatus() 75 { 76 return mStatus; 77 } 78 79 84 public String getServiceURL() 85 { 86 return mServiceURL; 87 } 88 89 94 public void setServiceURL(String serviceURL) 95 { 96 mServiceURL = serviceURL; 97 } 98 99 104 public SOAPMessage getMessage() 105 { 106 return mMessage; 107 } 108 109 115 public void setValue(String propertyName, Object value) 116 { 117 mMap.put(propertyName, value); 118 } 119 120 127 public Object getValue(String propertyName) 128 { 129 return mMap.get(propertyName); 130 } 131 132 137 public Iterator getProperties() 138 { 139 return mMap.keySet().iterator(); 140 } 141 } 142 | Popular Tags |