com.hammingweight.hammock.mocks.ksoap2.transport
Class MockHttpTransport

java.lang.Object
  extended by org.ksoap2.transport.Transport
      extended by org.ksoap2.transport.HttpTransport
          extended by com.hammingweight.hammock.mocks.ksoap2.transport.MockHttpTransport
All Implemented Interfaces:
IMockObject

public class MockHttpTransport
extends org.ksoap2.transport.HttpTransport
implements IMockObject


Field Summary
static MockMethod MTHD_CALL_$_STRING_SOAPENVELOPE
           
static MockMethod MTHD_CREATE_REQUEST_DATA_$_SOAPENVELOPE
           
static MockMethod MTHD_GET_SERVICE_CONNECTION
           
static MockMethod MTHD_PARSE_RESPONSE_$_SOAPENVELOPE_INPUTSTREAM
           
static MockMethod MTHD_RESET
           
static MockMethod MTHD_SET_URL_$_STRING
           
static MockMethod MTHD_SET_XML_VERSION_TAG_$_STRING
           
 
Fields inherited from class org.ksoap2.transport.Transport
debug, requestDump, responseDump, url
 
Constructor Summary
MockHttpTransport(java.lang.String arg0)
           
MockHttpTransport(java.lang.String arg0, IInvocationHandler handler)
           
 
Method Summary
 void call(java.lang.String arg0, org.ksoap2.SoapEnvelope arg1)
           
 byte[] createRequestData(org.ksoap2.SoapEnvelope arg0)
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 org.ksoap2.transport.ServiceConnection getServiceConnection()
           
 void parseResponse(org.ksoap2.SoapEnvelope arg0, java.io.InputStream arg1)
           
 void reset()
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setUrl(java.lang.String arg0)
           
 void setXmlVersionTag(java.lang.String arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_CALL_$_STRING_SOAPENVELOPE

public static final MockMethod MTHD_CALL_$_STRING_SOAPENVELOPE

MTHD_CREATE_REQUEST_DATA_$_SOAPENVELOPE

public static final MockMethod MTHD_CREATE_REQUEST_DATA_$_SOAPENVELOPE

MTHD_GET_SERVICE_CONNECTION

public static final MockMethod MTHD_GET_SERVICE_CONNECTION

MTHD_PARSE_RESPONSE_$_SOAPENVELOPE_INPUTSTREAM

public static final MockMethod MTHD_PARSE_RESPONSE_$_SOAPENVELOPE_INPUTSTREAM

MTHD_RESET

public static final MockMethod MTHD_RESET

MTHD_SET_URL_$_STRING

public static final MockMethod MTHD_SET_URL_$_STRING

MTHD_SET_XML_VERSION_TAG_$_STRING

public static final MockMethod MTHD_SET_XML_VERSION_TAG_$_STRING
Constructor Detail

MockHttpTransport

public MockHttpTransport(java.lang.String arg0)

MockHttpTransport

public MockHttpTransport(java.lang.String arg0,
                         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.

call

public void call(java.lang.String arg0,
                 org.ksoap2.SoapEnvelope arg1)
          throws java.io.IOException,
                 org.xmlpull.v1.XmlPullParserException
Overrides:
call in class org.ksoap2.transport.HttpTransport
Throws:
java.io.IOException
org.xmlpull.v1.XmlPullParserException

createRequestData

public byte[] createRequestData(org.ksoap2.SoapEnvelope arg0)
                         throws java.io.IOException
Overrides:
createRequestData in class org.ksoap2.transport.Transport
Throws:
java.io.IOException

getServiceConnection

public org.ksoap2.transport.ServiceConnection getServiceConnection()
                                                            throws java.io.IOException
Overrides:
getServiceConnection in class org.ksoap2.transport.HttpTransport
Throws:
java.io.IOException

parseResponse

public void parseResponse(org.ksoap2.SoapEnvelope arg0,
                          java.io.InputStream arg1)
                   throws org.xmlpull.v1.XmlPullParserException,
                          java.io.IOException
Overrides:
parseResponse in class org.ksoap2.transport.Transport
Throws:
org.xmlpull.v1.XmlPullParserException
java.io.IOException

reset

public void reset()
Overrides:
reset in class org.ksoap2.transport.HttpTransport

setUrl

public void setUrl(java.lang.String arg0)
Overrides:
setUrl in class org.ksoap2.transport.Transport

setXmlVersionTag

public void setXmlVersionTag(java.lang.String arg0)
Overrides:
setXmlVersionTag in class org.ksoap2.transport.Transport