Package be.business.connector.core.utils
Class MessageDumper
- java.lang.Object
-
- be.business.connector.core.utils.MessageDumper
-
public class MessageDumper extends Object
The Class MessageDumper.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump(byte[] data, String name, String way)Dump.voiddump(ByteArrayOutputStream bos, String name, String way)Dump.static MessageDumpergetInstance()Gets the single instance of MessageDumper.static StringgetOperationName(SOAPMessageContext context)Gets the operation name.voidinit(PropertyHandler propertyHandler)Inits the MessageDumperbooleanisDumpEnabled()Checks if is dump enabled.
-
-
-
Field Detail
-
IN
public static final String IN
The Constant IN.- See Also:
- Constant Field Values
-
OUT
public static final String OUT
The Constant OUT.- See Also:
- Constant Field Values
-
MESSAGE_DUMPER_DIRECTORY
public static final String MESSAGE_DUMPER_DIRECTORY
The Constant MESSAGE_DUMPER_DIRECTORY.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static MessageDumper getInstance()
Gets the single instance of MessageDumper.- Returns:
- single instance of MessageDumper
-
init
public void init(PropertyHandler propertyHandler)
Inits the MessageDumper- Parameters:
propertyHandler- the property handler
-
isDumpEnabled
public boolean isDumpEnabled()
Checks if is dump enabled.- Returns:
- true, if is dump enabled
-
dump
public void dump(ByteArrayOutputStream bos, String name, String way)
Dump.- Parameters:
bos- the bosname- the name
-
dump
public void dump(byte[] data, String name, String way)Dump.- Parameters:
data- the bisname- the nameway- the way
-
getOperationName
public static String getOperationName(SOAPMessageContext context)
Gets the operation name.- Parameters:
context- the context- Returns:
- the operation name
-
-