PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.util
Class SOAPUtil

java.lang.Object
  extended by org.picketlink.identity.federation.core.util.SOAPUtil

public class SOAPUtil
extends Object

Utility class dealing with SAAJ

Since:
Jun 16, 2011
Author:
Anil.Saldhana@redhat.com

Constructor Summary
SOAPUtil()
           
 
Method Summary
static void addData(Source data, SOAPMessage soapMessage)
          Add content to SOAPMessage
static SOAPMessage create()
          Create an empty SOAPMessage
static SOAPMessage createFault(String message)
          Given a string message, create a SOAPFault
static SOAPMessage createFault12(String message)
          Given a string message, create a SOAPFault that is SOAP 1.2
static SOAPMessage createSOAP12()
          Create a SOAP 1.2 Message
static SOAPMessage getSOAP12Message(InputStream is)
          Given a stream of SOAPMessage that is SOAP 1.2, construct the SOAPMessage
static Document getSOAPData(SOAPMessage soapMessage)
          Given a SOAPMessage, get the content as a Document
static SOAPMessage getSOAPMessage(InputStream is)
          Given a stream of SOAPMessage, construct the SOAPMessage
static boolean isSOAP12(SOAPMessage soapMessage)
          Determine if a SOAPMessage is SOAP 1.2
static String soapMessageAsString(SOAPMessage soapMessage)
          Utility method to dump soapMessage to String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPUtil

public SOAPUtil()
Method Detail

create

public static SOAPMessage create()
                          throws SOAPException
Create an empty SOAPMessage

Returns:
Throws:
SOAPException

createSOAP12

public static SOAPMessage createSOAP12()
                                throws SOAPException
Create a SOAP 1.2 Message

Returns:
Throws:
SOAPException

getSOAPMessage

public static SOAPMessage getSOAPMessage(InputStream is)
                                  throws IOException,
                                         SOAPException
Given a stream of SOAPMessage, construct the SOAPMessage

Parameters:
is -
Returns:
Throws:
IOException
SOAPException

getSOAP12Message

public static SOAPMessage getSOAP12Message(InputStream is)
                                    throws IOException,
                                           SOAPException
Given a stream of SOAPMessage that is SOAP 1.2, construct the SOAPMessage

Parameters:
is -
Returns:
Throws:
IOException
SOAPException

createFault

public static SOAPMessage createFault(String message)
                               throws SOAPException
Given a string message, create a SOAPFault

Parameters:
message -
Returns:
Throws:
SOAPException

createFault12

public static SOAPMessage createFault12(String message)
                                 throws SOAPException
Given a string message, create a SOAPFault that is SOAP 1.2

Parameters:
message -
Returns:
Throws:
SOAPException

getSOAPData

public static Document getSOAPData(SOAPMessage soapMessage)
                            throws SOAPException
Given a SOAPMessage, get the content as a Document

Parameters:
soapMessage -
Returns:
Throws:
SOAPException

isSOAP12

public static boolean isSOAP12(SOAPMessage soapMessage)
                        throws SOAPException
Determine if a SOAPMessage is SOAP 1.2

Parameters:
soapMessage -
Returns:
Throws:
SOAPException

addData

public static void addData(Source data,
                           SOAPMessage soapMessage)
                    throws SOAPException
Add content to SOAPMessage

Parameters:
data -
soapMessage -
Throws:
SOAPException

soapMessageAsString

public static String soapMessageAsString(SOAPMessage soapMessage)
Utility method to dump soapMessage to String. Used for logging purpose. Use only with TRACE level, please.

Parameters:
soapMessage -
Returns:
String representation of soapMessage

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.