public class SafetyInformationInterceptorImpl extends java.lang.Object implements SafetyInformationPolicyInterceptor, OutboundSOAPUTF8TransformationInterceptor, InboundSOAPXMLDocumentInterceptor
| Modifier and Type | Class and Description |
|---|---|
static class |
SafetyInformationInterceptorImpl.TransformedChannelInfos |
| Constructor and Description |
|---|
SafetyInformationInterceptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDualChannelQNameAttribute(java.lang.String dualChannelNS,
org.w3c.dom.Element valueElement,
org.ws4d.java.types.QName attrValue,
org.ws4d.java.structures.HashMap declaredNameSpaces,
XPathNamespaceContext ctxt,
java.lang.String attributeNamePrefixed) |
static void |
appendXmlFragment(javax.xml.parsers.DocumentBuilder docBuilder,
org.w3c.dom.Node parent,
java.lang.String fragment) |
protected org.w3c.dom.Node |
createDOMNode(org.ws4d.java.service.parameter.ParameterValue pv,
org.w3c.dom.Document inboundSOAPDocument) |
QoSPolicyInterceptionDirection |
getInterceptionDirection() |
org.ws4d.java.structures.Iterator |
getInterceptorSubjectClasses() |
protected java.lang.String |
getNameSpacePrefix(org.w3c.dom.Element valueElement,
org.ws4d.java.structures.HashMap declaredNameSpaces,
java.lang.String nameSpace,
XPathNamespaceContext ctxt) |
QoSPolicyOrdinalNumber |
getOrdinalNumberForSubject(java.lang.Class<?> subjectClass) |
org.ws4d.java.structures.Iterator |
getQoSPolicyClasses() |
org.w3c.dom.Document |
interceptInbound(org.w3c.dom.Document inboundSOAPDocument,
org.ws4d.java.communication.ConnectionInfo protocolData,
org.ws4d.java.communication.receiver.MessageReceiver to,
QoSMessageContext qosMessageCtxt,
QoSPolicy policy,
java.lang.String action) |
boolean |
interceptOutbound(java.io.InputStream interceptableSOAPUTF8InputStream,
org.ws4d.java.communication.ConnectionInfo protocolData,
QoSMessageContext qosMsgCtxt,
QoSPolicy policy,
java.io.OutputStream soapUTF8OutputStream,
org.ws4d.java.schema.Element schemaElement) |
protected org.ws4d.java.types.QName |
parsePrefixValue(org.ws4d.java.structures.HashMap declaredNameSpaces,
java.lang.String prefixedString,
org.w3c.dom.Node ctxtValueWrapperNode) |
protected void |
transformFirstChannelNodes(SafetyInformationPolicy policy,
SafetyInformationInterceptorImpl.TransformedChannelInfos channelInfos,
org.w3c.dom.Node[] nodes) |
protected java.lang.String |
transformXPathExpression(org.w3c.dom.Element value,
java.lang.String expr,
org.ws4d.java.structures.HashMap declaredNameSpaces,
XPathNamespaceContext ctxt) |
public static void appendXmlFragment(javax.xml.parsers.DocumentBuilder docBuilder,
org.w3c.dom.Node parent,
java.lang.String fragment)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOExceptionorg.xml.sax.SAXExceptionpublic boolean interceptOutbound(java.io.InputStream interceptableSOAPUTF8InputStream,
org.ws4d.java.communication.ConnectionInfo protocolData,
QoSMessageContext qosMsgCtxt,
QoSPolicy policy,
java.io.OutputStream soapUTF8OutputStream,
org.ws4d.java.schema.Element schemaElement)
throws InterceptionException
interceptOutbound in interface OutboundSOAPUTF8TransformationInterceptorInterceptionExceptionprotected void transformFirstChannelNodes(SafetyInformationPolicy policy, SafetyInformationInterceptorImpl.TransformedChannelInfos channelInfos, org.w3c.dom.Node[] nodes)
policy - channelInfos - nodes - protected java.lang.String transformXPathExpression(org.w3c.dom.Element value,
java.lang.String expr,
org.ws4d.java.structures.HashMap declaredNameSpaces,
XPathNamespaceContext ctxt)
value - expr - declaredNameSpaces - ctxt - protected void addDualChannelQNameAttribute(java.lang.String dualChannelNS,
org.w3c.dom.Element valueElement,
org.ws4d.java.types.QName attrValue,
org.ws4d.java.structures.HashMap declaredNameSpaces,
XPathNamespaceContext ctxt,
java.lang.String attributeNamePrefixed)
dualChannelNS - attrValue - valueElement - declaredNameSpaces - ctxt - attributeNamePrefixed - protected java.lang.String getNameSpacePrefix(org.w3c.dom.Element valueElement,
org.ws4d.java.structures.HashMap declaredNameSpaces,
java.lang.String nameSpace,
XPathNamespaceContext ctxt)
valueElement - declaredNameSpaces - nameSpace - ctxt - public QoSPolicyOrdinalNumber getOrdinalNumberForSubject(java.lang.Class<?> subjectClass)
getOrdinalNumberForSubject in interface QoSPolicyInterceptorpublic org.ws4d.java.structures.Iterator getQoSPolicyClasses()
getQoSPolicyClasses in interface QoSPolicyInterceptorpublic org.ws4d.java.structures.Iterator getInterceptorSubjectClasses()
getInterceptorSubjectClasses in interface QoSPolicyInterceptorpublic QoSPolicyInterceptionDirection getInterceptionDirection()
getInterceptionDirection in interface QoSPolicyInterceptorpublic org.w3c.dom.Document interceptInbound(org.w3c.dom.Document inboundSOAPDocument,
org.ws4d.java.communication.ConnectionInfo protocolData,
org.ws4d.java.communication.receiver.MessageReceiver to,
QoSMessageContext qosMessageCtxt,
QoSPolicy policy,
java.lang.String action)
throws InterceptionException
interceptInbound in interface InboundSOAPXMLDocumentInterceptorInterceptionExceptionprotected org.w3c.dom.Node createDOMNode(org.ws4d.java.service.parameter.ParameterValue pv,
org.w3c.dom.Document inboundSOAPDocument)
throws java.io.IOException,
java.io.UnsupportedEncodingException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
pv - inboundSOAPDocument - java.io.IOExceptionjava.io.UnsupportedEncodingExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionprotected org.ws4d.java.types.QName parsePrefixValue(org.ws4d.java.structures.HashMap declaredNameSpaces,
java.lang.String prefixedString,
org.w3c.dom.Node ctxtValueWrapperNode)
declaredNameSpaces - prefixedString - ctxtValueWrapperNode -