org.apache.servicemix.truezip
Class TrueZipSenderEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.Endpoint
      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:
org.apache.servicemix.common.ExchangeProcessor, TrueZipEndpointType

public class TrueZipSenderEndpoint
extends org.apache.servicemix.common.endpoints.ProviderEndpoint
implements TrueZipEndpointType

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

Version:
$Revision: 10098 $

Field Summary
 
Fields inherited from class org.apache.servicemix.common.Endpoint
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
getRole, process, start, stop
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
activate, deactivate, done, fail, getChannel, getContext, getExchangeFactory, getProcessor, send, sendSync
 
Methods inherited from class org.apache.servicemix.common.Endpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, 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
Overrides:
validate in class org.apache.servicemix.common.Endpoint
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 org.apache.servicemix.common.endpoints.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 org.apache.servicemix.common.endpoints.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-2007. All Rights Reserved.