org.talend.esb.sam.common.handler.impl
Class ContentLengthHandler
java.lang.Object
org.talend.esb.sam.common.handler.impl.ContentLengthHandler
- All Implemented Interfaces:
- EventHandler
public class ContentLengthHandler
- extends Object
- implements EventHandler
Content length handler is able to cut the message content within an event. Set the maximum length with setLength.
If content is cut it's stored inside
- Author:
- cschmuelling
|
Method Summary |
int |
getLength()
|
void |
handleEvent(Event event)
Cut the message content to the configured length |
void |
setLength(int length)
Set the maximum length for the message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentLengthHandler
public ContentLengthHandler()
getLength
public int getLength()
setLength
public void setLength(int length)
- Set the maximum length for the message.
- Parameters:
length -
handleEvent
public void handleEvent(Event event)
- Cut the message content to the configured length
- Specified by:
handleEvent in interface EventHandler
Copyright © 2011 Talend Inc.. All Rights Reserved.