org.talend.esb.sam.common.handler.impl
Class ContentLengthHandler

java.lang.Object
  extended by 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

Constructor Summary
ContentLengthHandler()
           
 
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
 

Constructor Detail

ContentLengthHandler

public ContentLengthHandler()
Method Detail

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.