com.hammingweight.hammock.mocks.obex
Class MockServerRequestHandler

java.lang.Object
  extended by javax.obex.ServerRequestHandler
      extended by com.hammingweight.hammock.mocks.obex.MockServerRequestHandler
All Implemented Interfaces:
IMockObject

public class MockServerRequestHandler
extends javax.obex.ServerRequestHandler
implements IMockObject


Field Summary
static MockMethod MTHD_GET_CONNECTION_ID
           
static MockMethod MTHD_ON_AUTHENTICATION_FAILURE_$_ARRAY_BYTE
           
static MockMethod MTHD_ON_CONNECT_$_HEADERSET_HEADERSET
           
static MockMethod MTHD_ON_DELETE_$_HEADERSET_HEADERSET
           
static MockMethod MTHD_ON_DISCONNECT_$_HEADERSET_HEADERSET
           
static MockMethod MTHD_ON_GET_$_OPERATION
           
static MockMethod MTHD_ON_PUT_$_OPERATION
           
static MockMethod MTHD_ON_SET_PATH_$_HEADERSET_HEADERSET_BOOLEAN_BOOLEAN
           
static MockMethod MTHD_SET_CONNECTION_ID_$_LONG
           
 
Constructor Summary
MockServerRequestHandler()
           
MockServerRequestHandler(IInvocationHandler handler)
           
 
Method Summary
 long getConnectionID()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 void onAuthenticationFailure(byte[] arg0)
           
 int onConnect(javax.obex.HeaderSet arg0, javax.obex.HeaderSet arg1)
           
 int onDelete(javax.obex.HeaderSet arg0, javax.obex.HeaderSet arg1)
           
 void onDisconnect(javax.obex.HeaderSet arg0, javax.obex.HeaderSet arg1)
           
 int onGet(javax.obex.Operation arg0)
           
 int onPut(javax.obex.Operation arg0)
           
 int onSetPath(javax.obex.HeaderSet arg0, javax.obex.HeaderSet arg1, boolean arg2, boolean arg3)
           
 void setConnectionID(long arg0)
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 
Methods inherited from class javax.obex.ServerRequestHandler
createHeaderSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_GET_CONNECTION_ID

public static final MockMethod MTHD_GET_CONNECTION_ID

MTHD_ON_AUTHENTICATION_FAILURE_$_ARRAY_BYTE

public static final MockMethod MTHD_ON_AUTHENTICATION_FAILURE_$_ARRAY_BYTE

MTHD_ON_CONNECT_$_HEADERSET_HEADERSET

public static final MockMethod MTHD_ON_CONNECT_$_HEADERSET_HEADERSET

MTHD_ON_DELETE_$_HEADERSET_HEADERSET

public static final MockMethod MTHD_ON_DELETE_$_HEADERSET_HEADERSET

MTHD_ON_DISCONNECT_$_HEADERSET_HEADERSET

public static final MockMethod MTHD_ON_DISCONNECT_$_HEADERSET_HEADERSET

MTHD_ON_GET_$_OPERATION

public static final MockMethod MTHD_ON_GET_$_OPERATION

MTHD_ON_PUT_$_OPERATION

public static final MockMethod MTHD_ON_PUT_$_OPERATION

MTHD_ON_SET_PATH_$_HEADERSET_HEADERSET_BOOLEAN_BOOLEAN

public static final MockMethod MTHD_ON_SET_PATH_$_HEADERSET_HEADERSET_BOOLEAN_BOOLEAN

MTHD_SET_CONNECTION_ID_$_LONG

public static final MockMethod MTHD_SET_CONNECTION_ID_$_LONG
Constructor Detail

MockServerRequestHandler

public MockServerRequestHandler()

MockServerRequestHandler

public MockServerRequestHandler(IInvocationHandler handler)
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.

getConnectionID

public long getConnectionID()
Overrides:
getConnectionID in class javax.obex.ServerRequestHandler

onAuthenticationFailure

public void onAuthenticationFailure(byte[] arg0)
Overrides:
onAuthenticationFailure in class javax.obex.ServerRequestHandler

onConnect

public int onConnect(javax.obex.HeaderSet arg0,
                     javax.obex.HeaderSet arg1)
Overrides:
onConnect in class javax.obex.ServerRequestHandler

onDelete

public int onDelete(javax.obex.HeaderSet arg0,
                    javax.obex.HeaderSet arg1)
Overrides:
onDelete in class javax.obex.ServerRequestHandler

onDisconnect

public void onDisconnect(javax.obex.HeaderSet arg0,
                         javax.obex.HeaderSet arg1)
Overrides:
onDisconnect in class javax.obex.ServerRequestHandler

onGet

public int onGet(javax.obex.Operation arg0)
Overrides:
onGet in class javax.obex.ServerRequestHandler

onPut

public int onPut(javax.obex.Operation arg0)
Overrides:
onPut in class javax.obex.ServerRequestHandler

onSetPath

public int onSetPath(javax.obex.HeaderSet arg0,
                     javax.obex.HeaderSet arg1,
                     boolean arg2,
                     boolean arg3)
Overrides:
onSetPath in class javax.obex.ServerRequestHandler

setConnectionID

public void setConnectionID(long arg0)
Overrides:
setConnectionID in class javax.obex.ServerRequestHandler