org.apache.servicemix.truezip
Class TrueZipSenderEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ProviderEndpoint
              extended by org.apache.servicemix.truezip.TrueZipSenderEndpoint
All Implemented Interfaces:
Endpoint, TrueZipEndpointType

public class TrueZipSenderEndpoint
extends ProviderEndpoint
implements TrueZipEndpointType

An endpoint which receives a message and writes the content to a file.

Version:
$Revision: 43330 $

Field Summary
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
TrueZipSenderEndpoint()
           
TrueZipSenderEndpoint(TrueZipComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
 
Method Summary
 File getDirectory()
           
 org.apache.servicemix.components.util.FileMarshaler getMarshaler()
           
protected  String getNewTempName()
           
 String getTempFilePrefix()
           
 String getTempFileSuffix()
           
 boolean isAutoCreateDirectory()
           
protected  void processInOnly(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in)
           
protected  void processInOut(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in, javax.jbi.messaging.NormalizedMessage out)
           
 void setAutoCreateDirectory(boolean autoCreateDirectory)
           
 void setDirectory(File directory)
           
 void setMarshaler(org.apache.servicemix.components.util.FileMarshaler marshaler)
           
 void setTempFilePrefix(String tempFilePrefix)
           
 void setTempFileSuffix(String tempFileSuffix)
           
 void validate()
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
activate, deactivate, getRole, process
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync, start, stop
 
Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrueZipSenderEndpoint

public TrueZipSenderEndpoint()

TrueZipSenderEndpoint

public TrueZipSenderEndpoint(TrueZipComponent component,
                             javax.jbi.servicedesc.ServiceEndpoint endpoint)
Method Detail

validate

public void validate()
              throws javax.jbi.management.DeploymentException
Specified by:
validate in interface Endpoint
Overrides:
validate in class AbstractEndpoint
Throws:
javax.jbi.management.DeploymentException

processInOnly

protected void processInOnly(javax.jbi.messaging.MessageExchange exchange,
                             javax.jbi.messaging.NormalizedMessage in)
                      throws Exception
Overrides:
processInOnly in class ProviderEndpoint
Throws:
Exception

getNewTempName

protected String getNewTempName()

processInOut

protected void processInOut(javax.jbi.messaging.MessageExchange exchange,
                            javax.jbi.messaging.NormalizedMessage in,
                            javax.jbi.messaging.NormalizedMessage out)
                     throws Exception
Overrides:
processInOut in class ProviderEndpoint
Throws:
Exception

getDirectory

public File getDirectory()

setDirectory

public void setDirectory(File directory)

getMarshaler

public org.apache.servicemix.components.util.FileMarshaler getMarshaler()

setMarshaler

public void setMarshaler(org.apache.servicemix.components.util.FileMarshaler marshaler)

getTempFilePrefix

public String getTempFilePrefix()

setTempFilePrefix

public void setTempFilePrefix(String tempFilePrefix)

getTempFileSuffix

public String getTempFileSuffix()

setTempFileSuffix

public void setTempFileSuffix(String tempFileSuffix)

isAutoCreateDirectory

public boolean isAutoCreateDirectory()

setAutoCreateDirectory

public void setAutoCreateDirectory(boolean autoCreateDirectory)


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.