public class ContentLengthHandler extends Object implements EventHandler
| Constructor and Description |
|---|
ContentLengthHandler()
Instantiates a new content length handler.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ContentLengthHandler()
public int getLength()
public void setLength(int length)
length - the new lengthpublic void handleEvent(Event event)
handleEvent in interface EventHandlerevent - the eventCopyright © 2011–2015 Talend Inc.. All rights reserved.