org.fosstrak.ale.util
Class EnveloperUtil

java.lang.Object
  extended by org.fosstrak.ale.util.EnveloperUtil

public class EnveloperUtil
extends java.lang.Object

This class provides some methods to packaging a message into a soap envelope.

Author:
regli

Constructor Summary
EnveloperUtil()
           
 
Method Summary
static java.io.InputStream envelope(java.io.InputStream in)
          This method packaging a message from an input stream into a soap envelope and returns it as an input stream.
static java.lang.String envelope(java.lang.String s)
          This method packaging a message from a string into a soap envelope and returns it as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnveloperUtil

public EnveloperUtil()
Method Detail

envelope

public static java.io.InputStream envelope(java.io.InputStream in)
This method packaging a message from an input stream into a soap envelope and returns it as an input stream.

Parameters:
in - input stream with the message to envelope
Returns:
input stream with the soap message

envelope

public static java.lang.String envelope(java.lang.String s)
This method packaging a message from a string into a soap envelope and returns it as a string.

Parameters:
s - string with the message to envelope
Returns:
string with the soap message


Copyright © 2009. All Rights Reserved.