org.mule.module.ibeans.spi
Class MuleResponseMessage

java.lang.Object
  extended by org.mule.module.ibeans.spi.MuleResponseMessage
All Implemented Interfaces:
org.ibeans.api.Response

public class MuleResponseMessage
extends java.lang.Object
implements org.ibeans.api.Response

An implementation of an IBeans Response that adapts to a MuleMessage


Constructor Summary
MuleResponseMessage(MuleMessage message)
           
 
Method Summary
 javax.activation.DataHandler getAttachment(java.lang.String name)
           
 java.util.Set<java.lang.String> getAttachmentNames()
           
 org.ibeans.api.DataType getDataType()
           
 java.lang.Throwable getException()
           
 java.lang.Object getHeader(java.lang.String name)
           
 java.util.Set<java.lang.String> getHeaderNames()
           
 MuleMessage getMessage()
           
 java.lang.String getMimeType()
           
 java.lang.Object getPayload()
           
 java.io.InputStream getPayloadAsStream()
           
 java.lang.String getStatusCode()
           
 void setStatusCode(java.lang.String code)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuleResponseMessage

public MuleResponseMessage(MuleMessage message)
                    throws javax.activation.MimeTypeParseException
Throws:
javax.activation.MimeTypeParseException
Method Detail

getStatusCode

public java.lang.String getStatusCode()
Specified by:
getStatusCode in interface org.ibeans.api.Response

setStatusCode

public void setStatusCode(java.lang.String code)
Specified by:
setStatusCode in interface org.ibeans.api.Response

getMimeType

public java.lang.String getMimeType()
Specified by:
getMimeType in interface org.ibeans.api.Response

getDataType

public org.ibeans.api.DataType getDataType()
Specified by:
getDataType in interface org.ibeans.api.Response

getPayloadAsStream

public java.io.InputStream getPayloadAsStream()
Specified by:
getPayloadAsStream in interface org.ibeans.api.Response

getPayload

public java.lang.Object getPayload()
Specified by:
getPayload in interface org.ibeans.api.Response

getHeader

public java.lang.Object getHeader(java.lang.String name)
Specified by:
getHeader in interface org.ibeans.api.Response

getHeaderNames

public java.util.Set<java.lang.String> getHeaderNames()
Specified by:
getHeaderNames in interface org.ibeans.api.Response

getAttachment

public javax.activation.DataHandler getAttachment(java.lang.String name)
Specified by:
getAttachment in interface org.ibeans.api.Response

getAttachmentNames

public java.util.Set<java.lang.String> getAttachmentNames()
Specified by:
getAttachmentNames in interface org.ibeans.api.Response

getMessage

public MuleMessage getMessage()

getException

public java.lang.Throwable getException()
Specified by:
getException in interface org.ibeans.api.Response


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.