Class SOAPMessageContext

java.lang.Object
com.sun.xml.rpc.soap.message.SOAPMessageContext
All Implemented Interfaces:
SOAPMessageContext, javax.xml.rpc.handler.MessageContext, javax.xml.rpc.handler.soap.SOAPMessageContext

public class SOAPMessageContext extends Object implements SOAPMessageContext
A MessageContext holds a SOAP message as well as a set (possibly transport-specific) properties.
Author:
JAX-RPC Development Team
  • Constructor Details

    • SOAPMessageContext

      public SOAPMessageContext()
  • Method Details

    • getRoles

      public String[] getRoles()
      Specified by:
      getRoles in interface javax.xml.rpc.handler.soap.SOAPMessageContext
    • setRoles

      public void setRoles(String[] roles)
    • getMessage

      public javax.xml.soap.SOAPMessage getMessage()
      Specified by:
      getMessage in interface javax.xml.rpc.handler.soap.SOAPMessageContext
    • setMessage

      public void setMessage(javax.xml.soap.SOAPMessage message)
      Specified by:
      setMessage in interface javax.xml.rpc.handler.soap.SOAPMessageContext
    • isFailure

      public boolean isFailure()
      Specified by:
      isFailure in interface SOAPMessageContext
    • setFailure

      public void setFailure(boolean b)
    • setCurrentHandler

      public void setCurrentHandler(int i)
    • getCurrentHandler

      public int getCurrentHandler()
    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in interface javax.xml.rpc.handler.MessageContext
    • setProperty

      public void setProperty(String name, Object value)
      Specified by:
      setProperty in interface javax.xml.rpc.handler.MessageContext
    • removeProperty

      public void removeProperty(String name)
      Specified by:
      removeProperty in interface javax.xml.rpc.handler.MessageContext
    • containsProperty

      public boolean containsProperty(String name)
      Specified by:
      containsProperty in interface javax.xml.rpc.handler.MessageContext
    • getPropertyNames

      public Iterator getPropertyNames()
      Specified by:
      getPropertyNames in interface javax.xml.rpc.handler.MessageContext
    • createMessage

      public javax.xml.soap.SOAPMessage createMessage()
    • createMessage

      public javax.xml.soap.SOAPMessage createMessage(boolean useFastInfoset, boolean acceptFastInfoset)
    • createMessage

      public javax.xml.soap.SOAPMessage createMessage(javax.xml.soap.MimeHeaders headers, InputStream in) throws IOException
      Specified by:
      createMessage in interface SOAPMessageContext
      Throws:
      IOException
    • writeInternalServerErrorResponse

      public void writeInternalServerErrorResponse()
      Specified by:
      writeInternalServerErrorResponse in interface SOAPMessageContext
    • writeSimpleErrorResponse

      public void writeSimpleErrorResponse(QName faultCode, String faultString)
      Specified by:
      writeSimpleErrorResponse in interface SOAPMessageContext
    • isFastInfoset

      public boolean isFastInfoset()
    • acceptFastInfoset

      public boolean acceptFastInfoset()