Class InterceptorHelper
- java.lang.Object
-
- adams.flow.webservice.interceptor.InterceptorHelper
-
public class InterceptorHelper extends Object
Helper class for interceptor related stuff.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static StringOUTGOING_BINARY_CONTENT_MESSAGEstatic StringOUTGOING_LOG_SETUP
-
Constructor Summary
Constructors Constructor Description InterceptorHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.cxf.interceptor.LoggingMessagesetupIncomingBuffer(org.apache.cxf.message.Message message)Configures the buffer for the incoming message.static org.apache.cxf.interceptor.LoggingMessagesetupOutgoingBuffer(org.apache.cxf.message.Message message)Configures the buffer for the outgoing message.static org.apache.cxf.interceptor.LoggingMessagewriteIncomingMessage(org.apache.cxf.message.Message message)Writes the message to a buffer.static voidwriteIncomingPayload(StringBuilder builder, org.apache.cxf.io.CachedOutputStream cos, String encoding, String contentType)Writes the payload of a message to the buffer.static voidwriteOutgoingPayload(StringBuilder builder, org.apache.cxf.message.Message message, org.apache.cxf.io.CachedOutputStream cos, String encoding, String contentType)Writes the outgoing payload to a buffer.
-
-
-
Field Detail
-
OUTGOING_BINARY_CONTENT_MESSAGE
public static final String OUTGOING_BINARY_CONTENT_MESSAGE
- See Also:
- Constant Field Values
-
OUTGOING_LOG_SETUP
public static final String OUTGOING_LOG_SETUP
-
-
Method Detail
-
setupOutgoingBuffer
public static org.apache.cxf.interceptor.LoggingMessage setupOutgoingBuffer(org.apache.cxf.message.Message message)
Configures the buffer for the outgoing message.- Parameters:
message- the message to configure the buffer for- Returns:
- the configured buffer
-
writeOutgoingPayload
public static void writeOutgoingPayload(StringBuilder builder, org.apache.cxf.message.Message message, org.apache.cxf.io.CachedOutputStream cos, String encoding, String contentType) throws Exception
Writes the outgoing payload to a buffer.- Parameters:
builder- the buffer to write tomessage- the messagecos- the cached output streamencoding- the encoding to usecontentType- the content type- Throws:
Exception
-
writeIncomingPayload
public static void writeIncomingPayload(StringBuilder builder, org.apache.cxf.io.CachedOutputStream cos, String encoding, String contentType) throws Exception
Writes the payload of a message to the buffer.- Parameters:
builder- the buffer to write tocos- the cached output stream to useencoding- the encoding to usecontentType- the content type- Throws:
Exception
-
writeIncomingMessage
public static org.apache.cxf.interceptor.LoggingMessage writeIncomingMessage(org.apache.cxf.message.Message message)
Writes the message to a buffer.- Parameters:
message- the message to write to a buffer- Returns:
- the generated buffer
-
setupIncomingBuffer
public static org.apache.cxf.interceptor.LoggingMessage setupIncomingBuffer(org.apache.cxf.message.Message message)
Configures the buffer for the incoming message.- Parameters:
message- the message to configure the buffer for- Returns:
- the generated buffer
-
-