Exemplo n.º 1
0
 /** {@inheritDoc} */
 public void release() {
   adapter.release();
   if (originalAdapter != null) {
     originalAdapter.release();
   }
   cache = null;
   appliedTransformerHashCodes.clear();
 }
Exemplo n.º 2
0
  protected void doSetUp() throws Exception {
    super.doSetUp();

    parser = new SimpleFilenameParser();

    adapter = new DefaultMessageAdapter("hello");
    adapter.setProperty("foo", "bar");
    adapter.setProperty(FileConnector.PROPERTY_ORIGINAL_FILENAME, "originalName");
    adapter.setProperty(FileConnector.PROPERTY_FILENAME, "newName");
  }
Exemplo n.º 3
0
 public DefaultMuleMessage(Object message, MessageAdapter previous) {
   if (message instanceof MessageAdapter) {
     adapter = (MessageAdapter) message;
     ((ThreadSafeAccess) adapter).resetAccessControl();
   } else {
     adapter = new DefaultMessageAdapter(message, previous);
   }
   if (previous.getExceptionPayload() != null) {
     setExceptionPayload(previous.getExceptionPayload());
   }
   setEncoding(previous.getEncoding());
   if (previous.getAttachmentNames().size() > 0) {
     Set<String> attNames = adapter.getAttachmentNames();
     for (String s : attNames) {
       try {
         addAttachment(s, adapter.getAttachment(s));
       } catch (Exception e) {
         throw new MuleRuntimeException(CoreMessages.failedToReadAttachment(s), e);
       }
     }
   }
   resetAccessControl();
 }
Exemplo n.º 4
0
 /** {@inheritDoc} */
 public DataHandler getAttachment(String name) {
   return adapter.getAttachment(name);
 }
Exemplo n.º 5
0
 /** {@inheritDoc} */
 public void removeAttachment(String name) throws Exception {
   adapter.removeAttachment(name);
 }
Exemplo n.º 6
0
 /** {@inheritDoc} */
 public void setIntProperty(String name, int value) {
   adapter.setIntProperty(name, value);
 }
Exemplo n.º 7
0
 /** {@inheritDoc} */
 public Object getPayload() {
   return adapter.getPayload();
 }
Exemplo n.º 8
0
 /** {@inheritDoc} */
 public void addProperties(Map properties, PropertyScope scope) {
   adapter.addProperties(properties, scope);
 }
Exemplo n.º 9
0
 /** {@inheritDoc} */
 public void setStringProperty(String name, String value) {
   adapter.setStringProperty(name, value);
 }
Exemplo n.º 10
0
 /** {@inheritDoc} */
 public void setEncoding(String encoding) {
   adapter.setEncoding(encoding);
 }
Exemplo n.º 11
0
 /** {@inheritDoc} */
 public int getCorrelationGroupSize() {
   return adapter.getCorrelationGroupSize();
 }
Exemplo n.º 12
0
 /** {@inheritDoc} */
 public void setCorrelationSequence(int sequence) {
   adapter.setCorrelationSequence(sequence);
 }
Exemplo n.º 13
0
 /** {@inheritDoc} */
 public int getCorrelationSequence() {
   return adapter.getCorrelationSequence();
 }
Exemplo n.º 14
0
 /** {@inheritDoc} */
 public Object getReplyTo() {
   return adapter.getReplyTo();
 }
Exemplo n.º 15
0
 /** {@inheritDoc} */
 public void setReplyTo(Object replyTo) {
   adapter.setReplyTo(replyTo);
 }
Exemplo n.º 16
0
 /** {@inheritDoc} */
 public String getCorrelationId() {
   return adapter.getCorrelationId();
 }
Exemplo n.º 17
0
 /** {@inheritDoc} */
 public void setCorrelationId(String id) {
   adapter.setCorrelationId(id);
 }
Exemplo n.º 18
0
 /** {@inheritDoc} */
 public Set getAttachmentNames() {
   return adapter.getAttachmentNames();
 }
Exemplo n.º 19
0
 /** {@inheritDoc} */
 public String getEncoding() {
   return adapter.getEncoding();
 }
Exemplo n.º 20
0
  /** {@inheritDoc} */
  public int getCorrelationGroupSize() {
    return adapter.getCorrelationGroupSize();
  }

  // ** {@inheritDoc} */
  public void setCorrelationGroupSize(int size) {
    adapter.setCorrelationGroupSize(size);
  }
Exemplo n.º 21
0
 /** {@inheritDoc} */
 public String getStringProperty(String name, String defaultValue) {
   return adapter.getStringProperty(name, defaultValue);
 }
Exemplo n.º 22
0
 /** {@inheritDoc} */
 public ExceptionPayload getExceptionPayload() {
   return adapter.getExceptionPayload();
 }
Exemplo n.º 23
0
 /** {@inheritDoc} */
 public void addProperties(Map properties) {
   adapter.addProperties(properties);
 }
Exemplo n.º 24
0
 /** {@inheritDoc} */
 public void setExceptionPayload(ExceptionPayload exceptionPayload) {
   adapter.setExceptionPayload(exceptionPayload);
 }
Exemplo n.º 25
0
 /** {@inheritDoc} */
 public void clearProperties() {
   adapter.clearProperties();
 }
Exemplo n.º 26
0
 /** {@inheritDoc} */
 public boolean getBooleanProperty(String name, boolean defaultValue) {
   return adapter.getBooleanProperty(name, defaultValue);
 }
Exemplo n.º 27
0
 /** {@inheritDoc} */
 public String toString() {
   return adapter.toString();
 }
Exemplo n.º 28
0
 /** {@inheritDoc} */
 public void setBooleanProperty(String name, boolean value) {
   adapter.setBooleanProperty(name, value);
 }
Exemplo n.º 29
0
 /** {@inheritDoc} */
 public void addAttachment(String name, DataHandler dataHandler) throws Exception {
   adapter.addAttachment(name, dataHandler);
 }
Exemplo n.º 30
0
 /** {@inheritDoc} */
 public int getIntProperty(String name, int defaultValue) {
   return adapter.getIntProperty(name, defaultValue);
 }