예제 #1
0
 /** {@inheritDoc} */
 public void release() {
   adapter.release();
   if (originalAdapter != null) {
     originalAdapter.release();
   }
   cache = null;
   appliedTransformerHashCodes.clear();
 }
예제 #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");
  }
예제 #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();
 }
예제 #4
0
 /** {@inheritDoc} */
 public DataHandler getAttachment(String name) {
   return adapter.getAttachment(name);
 }
예제 #5
0
 /** {@inheritDoc} */
 public void removeAttachment(String name) throws Exception {
   adapter.removeAttachment(name);
 }
예제 #6
0
 /** {@inheritDoc} */
 public void setIntProperty(String name, int value) {
   adapter.setIntProperty(name, value);
 }
예제 #7
0
 /** {@inheritDoc} */
 public Object getPayload() {
   return adapter.getPayload();
 }
예제 #8
0
 /** {@inheritDoc} */
 public void addProperties(Map properties, PropertyScope scope) {
   adapter.addProperties(properties, scope);
 }
예제 #9
0
 /** {@inheritDoc} */
 public void setStringProperty(String name, String value) {
   adapter.setStringProperty(name, value);
 }
예제 #10
0
 /** {@inheritDoc} */
 public void setEncoding(String encoding) {
   adapter.setEncoding(encoding);
 }
예제 #11
0
 /** {@inheritDoc} */
 public int getCorrelationGroupSize() {
   return adapter.getCorrelationGroupSize();
 }
예제 #12
0
 /** {@inheritDoc} */
 public void setCorrelationSequence(int sequence) {
   adapter.setCorrelationSequence(sequence);
 }
예제 #13
0
 /** {@inheritDoc} */
 public int getCorrelationSequence() {
   return adapter.getCorrelationSequence();
 }
예제 #14
0
 /** {@inheritDoc} */
 public Object getReplyTo() {
   return adapter.getReplyTo();
 }
예제 #15
0
 /** {@inheritDoc} */
 public void setReplyTo(Object replyTo) {
   adapter.setReplyTo(replyTo);
 }
예제 #16
0
 /** {@inheritDoc} */
 public String getCorrelationId() {
   return adapter.getCorrelationId();
 }
예제 #17
0
 /** {@inheritDoc} */
 public void setCorrelationId(String id) {
   adapter.setCorrelationId(id);
 }
예제 #18
0
 /** {@inheritDoc} */
 public Set getAttachmentNames() {
   return adapter.getAttachmentNames();
 }
예제 #19
0
 /** {@inheritDoc} */
 public String getEncoding() {
   return adapter.getEncoding();
 }
예제 #20
0
  /** {@inheritDoc} */
  public int getCorrelationGroupSize() {
    return adapter.getCorrelationGroupSize();
  }

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