com.hammingweight.hammock.mocks.wireless.messaging
Class MockMessagePart

java.lang.Object
  extended by javax.wireless.messaging.MessagePart
      extended by com.hammingweight.hammock.mocks.wireless.messaging.MockMessagePart
All Implemented Interfaces:
IMockObject

public class MockMessagePart
extends javax.wireless.messaging.MessagePart
implements IMockObject


Field Summary
static MockMethod MTHD_GET_CONTENT
           
static MockMethod MTHD_GET_CONTENT_AS_STREAM
           
static MockMethod MTHD_GET_CONTENT_ID
           
static MockMethod MTHD_GET_CONTENT_LOCATION
           
static MockMethod MTHD_GET_ENCODING
           
static MockMethod MTHD_GET_LENGTH
           
static MockMethod MTHD_GET_MIMETYPE
           
 
Constructor Summary
MockMessagePart(byte[] arg0, int arg1, int arg2, java.lang.String arg3, java.lang.String arg4, java.lang.String arg5, java.lang.String arg6)
           
MockMessagePart(byte[] arg0, int arg1, int arg2, java.lang.String arg3, java.lang.String arg4, java.lang.String arg5, java.lang.String arg6, IInvocationHandler handler)
           
MockMessagePart(byte[] arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4)
           
MockMessagePart(byte[] arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4, IInvocationHandler handler)
           
MockMessagePart(java.io.InputStream arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4)
           
MockMessagePart(java.io.InputStream arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4, IInvocationHandler handler)
           
 
Method Summary
 byte[] getContent()
           
 java.io.InputStream getContentAsStream()
           
 java.lang.String getContentID()
           
 java.lang.String getContentLocation()
           
 java.lang.String getEncoding()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 int getLength()
           
 java.lang.String getMIMEType()
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_GET_CONTENT

public static final MockMethod MTHD_GET_CONTENT

MTHD_GET_CONTENT_AS_STREAM

public static final MockMethod MTHD_GET_CONTENT_AS_STREAM

MTHD_GET_CONTENT_ID

public static final MockMethod MTHD_GET_CONTENT_ID

MTHD_GET_CONTENT_LOCATION

public static final MockMethod MTHD_GET_CONTENT_LOCATION

MTHD_GET_ENCODING

public static final MockMethod MTHD_GET_ENCODING

MTHD_GET_LENGTH

public static final MockMethod MTHD_GET_LENGTH

MTHD_GET_MIMETYPE

public static final MockMethod MTHD_GET_MIMETYPE
Constructor Detail

MockMessagePart

public MockMessagePart(byte[] arg0,
                       int arg1,
                       int arg2,
                       java.lang.String arg3,
                       java.lang.String arg4,
                       java.lang.String arg5,
                       java.lang.String arg6)
                throws javax.wireless.messaging.SizeExceededException
Throws:
javax.wireless.messaging.SizeExceededException

MockMessagePart

public MockMessagePart(byte[] arg0,
                       int arg1,
                       int arg2,
                       java.lang.String arg3,
                       java.lang.String arg4,
                       java.lang.String arg5,
                       java.lang.String arg6,
                       IInvocationHandler handler)
                throws javax.wireless.messaging.SizeExceededException
Throws:
javax.wireless.messaging.SizeExceededException

MockMessagePart

public MockMessagePart(byte[] arg0,
                       java.lang.String arg1,
                       java.lang.String arg2,
                       java.lang.String arg3,
                       java.lang.String arg4)
                throws javax.wireless.messaging.SizeExceededException
Throws:
javax.wireless.messaging.SizeExceededException

MockMessagePart

public MockMessagePart(byte[] arg0,
                       java.lang.String arg1,
                       java.lang.String arg2,
                       java.lang.String arg3,
                       java.lang.String arg4,
                       IInvocationHandler handler)
                throws javax.wireless.messaging.SizeExceededException
Throws:
javax.wireless.messaging.SizeExceededException

MockMessagePart

public MockMessagePart(java.io.InputStream arg0,
                       java.lang.String arg1,
                       java.lang.String arg2,
                       java.lang.String arg3,
                       java.lang.String arg4)
                throws java.io.IOException,
                       javax.wireless.messaging.SizeExceededException
Throws:
java.io.IOException
javax.wireless.messaging.SizeExceededException

MockMessagePart

public MockMessagePart(java.io.InputStream arg0,
                       java.lang.String arg1,
                       java.lang.String arg2,
                       java.lang.String arg3,
                       java.lang.String arg4,
                       IInvocationHandler handler)
                throws java.io.IOException,
                       javax.wireless.messaging.SizeExceededException
Throws:
java.io.IOException
javax.wireless.messaging.SizeExceededException
Method Detail

setInvocationHandler

public final void setInvocationHandler(IInvocationHandler handler)
Description copied from interface: IMockObject
Sets the invocation handler that the mock object should use to evaluate method invocations.

Specified by:
setInvocationHandler in interface IMockObject
Parameters:
handler - The invocation handler to be used by the mock object.

getInvocationHandler

public final IInvocationHandler getInvocationHandler()
Description copied from interface: IMockObject
Gets the invocation handler that the mock object uses to evaluate method invocations.

Specified by:
getInvocationHandler in interface IMockObject
Returns:
The invocation handler used by the mock object.

getContent

public byte[] getContent()
Overrides:
getContent in class javax.wireless.messaging.MessagePart

getContentAsStream

public java.io.InputStream getContentAsStream()
Overrides:
getContentAsStream in class javax.wireless.messaging.MessagePart

getContentID

public java.lang.String getContentID()
Overrides:
getContentID in class javax.wireless.messaging.MessagePart

getContentLocation

public java.lang.String getContentLocation()
Overrides:
getContentLocation in class javax.wireless.messaging.MessagePart

getEncoding

public java.lang.String getEncoding()
Overrides:
getEncoding in class javax.wireless.messaging.MessagePart

getLength

public int getLength()
Overrides:
getLength in class javax.wireless.messaging.MessagePart

getMIMEType

public java.lang.String getMIMEType()
Overrides:
getMIMEType in class javax.wireless.messaging.MessagePart