Methods Summary |
---|
public Endpoint | getEndpoint()Return the endpoint where this message originated from
return source;
|
public java.lang.String | getMessage(boolean includeHeaders)Return the SOAPMessage as a string including the SOAPHeaders or not
if (soapMessage!=null) {
if (includeHeaders) {
return soapMessage;
}
StringBuffer sb = new StringBuffer();
Pattern p = Pattern.compile("<env:Body>.*</env:Body>");
Matcher m = p.matcher(soapMessage);
if (m.find()) {
return soapMessage.substring(m.start(),m.end());
} else {
return soapMessage;
}
}
return null;
|
public java.lang.String | getMessageID()
return String.valueOf(hashcode);
|
public TransportInfo | getTransportInfo()
return transportInfo;
|
public void | setEndpoint(Endpoint source)
this.source = source;
|
public void | setMessageContext(com.sun.xml.rpc.spi.runtime.SOAPMessageContext soapMessageCtx)
hashcode = soapMessageCtx.hashCode();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
soapMessageCtx.getMessage().writeTo(baos);
} catch(Exception e) {
WebServiceEngineImpl.sLogger.log(Level.WARNING, "Cannot log SOAP Message " + e.getMessage());
}
soapMessage = baos.toString();
|
public void | setMessageContext(com.sun.enterprise.webservice.SOAPMessageContext soapMessageCtx)
hashcode = soapMessageCtx.hashCode();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
soapMessageCtx.getMessage().writeTo(baos);
} catch(Exception e) {
WebServiceEngineImpl.sLogger.log(Level.WARNING, "Cannot log SOAP Message " + e.getMessage());
}
soapMessage = baos.toString();
|
public void | setTransportInfo(TransportInfo info)
transportInfo = info;
|