Class SecurableSoapMessage


  • public final class SecurableSoapMessage
    extends javax.xml.soap.SOAPMessage
    • Constructor Detail

      • SecurableSoapMessage

        public SecurableSoapMessage()
    • Method Detail

      • findWsseSecurityHeaderBlock

        public SecurityHeader findWsseSecurityHeaderBlock​(boolean doCreate,
                                                          boolean mustUnderstand)
                                                   throws XWSSecurityException
        Finds wsse:Security Header Block.
        Parameters:
        doCreate - create one if none exists
        Returns:
        wsse:Security header
        Throws:
        XWSSecurityException
      • deleteSecurityHeader

        public void deleteSecurityHeader()
        Delete security header
      • resetMustUnderstandOnSecHeader

        public void resetMustUnderstandOnSecHeader()
        Make Security Header Non-MustUnderstand
      • generateSecurityHeaderException

        public void generateSecurityHeaderException​(String exceptionMessage)
                                             throws SecurityHeaderException,
                                                    XWSSecurityException
        Create and initialize a SecurityHeaderException, and throw a fault based on it. The faultstring for this exception is wsse:InvalidSecurity as per section 12 on Error Handling of the wss SOAPMessageSecurity spec (draft 17). This fault stands for An error was discovered processing the wsse:Security header.
        Throws:
        SecurityHeaderException
        XWSSecurityException
      • newSOAPFaultException

        public static WssSoapFaultException newSOAPFaultException​(String faultstring,
                                                                  Throwable th)
        Create and initialize a WssSoapFaultException. This method is used in conjunction with generateClientFault.
      • newSOAPFaultException

        public static WssSoapFaultException newSOAPFaultException​(QName faultCode,
                                                                  String faultstring,
                                                                  Throwable th)
        Create and initialize a WssSoapFaultException. This method is used in conjunction with generateClientFault.
      • getSOAPPart

        public javax.xml.soap.SOAPPart getSOAPPart()
        Specified by:
        getSOAPPart in class javax.xml.soap.SOAPMessage
      • getSOAPBody

        public javax.xml.soap.SOAPBody getSOAPBody()
                                            throws javax.xml.soap.SOAPException
        Overrides:
        getSOAPBody in class javax.xml.soap.SOAPMessage
        Throws:
        javax.xml.soap.SOAPException
      • getSOAPMessage

        public javax.xml.soap.SOAPMessage getSOAPMessage()
      • addAttachmentPart

        public void addAttachmentPart​(javax.xml.soap.AttachmentPart AttachmentPart)
        Specified by:
        addAttachmentPart in class javax.xml.soap.SOAPMessage
      • countAttachments

        public int countAttachments()
        Specified by:
        countAttachments in class javax.xml.soap.SOAPMessage
      • createAttachmentPart

        public javax.xml.soap.AttachmentPart createAttachmentPart()
        Specified by:
        createAttachmentPart in class javax.xml.soap.SOAPMessage
      • createAttachmentPart

        public javax.xml.soap.AttachmentPart createAttachmentPart​(Object content,
                                                                  String contentType)
        Overrides:
        createAttachmentPart in class javax.xml.soap.SOAPMessage
      • createAttachmentPart

        public javax.xml.soap.AttachmentPart createAttachmentPart​(javax.activation.DataHandler dataHandler)
        Overrides:
        createAttachmentPart in class javax.xml.soap.SOAPMessage
      • getAttachments

        public Iterator getAttachments()
        Specified by:
        getAttachments in class javax.xml.soap.SOAPMessage
      • getAttachments

        public Iterator getAttachments​(javax.xml.soap.MimeHeaders headers)
        Specified by:
        getAttachments in class javax.xml.soap.SOAPMessage
      • getContentDescription

        public String getContentDescription()
        Specified by:
        getContentDescription in class javax.xml.soap.SOAPMessage
      • getMimeHeaders

        public javax.xml.soap.MimeHeaders getMimeHeaders()
        Specified by:
        getMimeHeaders in class javax.xml.soap.SOAPMessage
      • getProperty

        public Object getProperty​(String property)
                           throws javax.xml.soap.SOAPException
        Overrides:
        getProperty in class javax.xml.soap.SOAPMessage
        Throws:
        javax.xml.soap.SOAPException
      • getSOAPHeader

        public javax.xml.soap.SOAPHeader getSOAPHeader()
                                                throws javax.xml.soap.SOAPException
        Overrides:
        getSOAPHeader in class javax.xml.soap.SOAPMessage
        Throws:
        javax.xml.soap.SOAPException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • removeAllAttachments

        public void removeAllAttachments()
        Specified by:
        removeAllAttachments in class javax.xml.soap.SOAPMessage
      • saveRequired

        public boolean saveRequired()
        Specified by:
        saveRequired in class javax.xml.soap.SOAPMessage
      • setContentDescription

        public void setContentDescription​(String description)
        Specified by:
        setContentDescription in class javax.xml.soap.SOAPMessage
      • setProperty

        public void setProperty​(String property,
                                Object value)
                         throws javax.xml.soap.SOAPException
        Overrides:
        setProperty in class javax.xml.soap.SOAPMessage
        Throws:
        javax.xml.soap.SOAPException
      • writeTo

        public void writeTo​(OutputStream out)
                     throws javax.xml.soap.SOAPException,
                            IOException
        Specified by:
        writeTo in class javax.xml.soap.SOAPMessage
        Throws:
        javax.xml.soap.SOAPException
        IOException
      • saveChanges

        public void saveChanges()
                         throws javax.xml.soap.SOAPException
        Specified by:
        saveChanges in class javax.xml.soap.SOAPMessage
        Throws:
        javax.xml.soap.SOAPException
      • getIdFromFragmentRef

        public static String getIdFromFragmentRef​(String ref)
      • getAttachment

        public javax.xml.soap.AttachmentPart getAttachment​(javax.xml.soap.SOAPElement element)
                                                    throws javax.xml.soap.SOAPException
        Specified by:
        getAttachment in class javax.xml.soap.SOAPMessage
        Throws:
        javax.xml.soap.SOAPException
      • removeAttachments

        public void removeAttachments​(javax.xml.soap.MimeHeaders hdrs)
        Specified by:
        removeAttachments in class javax.xml.soap.SOAPMessage
      • isOptimized

        public boolean isOptimized()
      • setOptimized

        public void setOptimized​(boolean optimized)
      • setDoNotSetMU

        public void setDoNotSetMU​(boolean doNotSetMU)