ca.infoway.messagebuilder.transport.mohawk
Interface Client

Package class diagram package Client

public interface Client

An interface for a transport layer to make use of a transport mechanism, such as HttpClient.

Author:
Intelliware Development

Method Summary
 int executeMethod(org.apache.commons.httpclient.methods.PostMethod method)
          Fires the given post method.
 org.apache.commons.httpclient.params.HttpClientParams getParams()
          Obtains the current http parameters.
 org.apache.commons.httpclient.HttpState getState()
          Obtains the http state of the underlying client.
 

Method Detail

getState

org.apache.commons.httpclient.HttpState getState()

Obtains the http state of the underlying client.

Returns:
the http state of the underlying client

getParams

org.apache.commons.httpclient.params.HttpClientParams getParams()

Obtains the current http parameters.

Returns:
http parameters

executeMethod

int executeMethod(org.apache.commons.httpclient.methods.PostMethod method)
                  throws IOException

Fires the given post method.

Parameters:
method - the type of method to execute
Returns:
the http status code
Throws:
IOException - if there were any problems during the execution of the method


Copyright © 2013. All Rights Reserved.