|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.talend.esb.sam.common.handler.impl.ContentLengthHandler
public class ContentLengthHandler
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
| Constructor Summary | |
|---|---|
ContentLengthHandler()
Instantiates a new content length handler. |
|
| Method Summary | |
|---|---|
int |
getLength()
Gets the length. |
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 |
| Constructor Detail |
|---|
public ContentLengthHandler()
| Method Detail |
|---|
public int getLength()
public void setLength(int length)
length - the new lengthpublic void handleEvent(Event event)
handleEvent in interface EventHandlerevent - the event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||