org.sblim.cimclient.internal.http

Class HttpClientMethod

public class HttpClientMethod extends HttpMethod

Class HttpClientMethod encapsulates a http client method
Constructor Summary
HttpClientMethod(String pMethod, String pRequest, int pMajor, int pMinor)
Ctor.
HttpClientMethod(InputStream pReader)
Ctor.
Method Summary
intgetMajorVersion()
Returns the major version
StringgetMethodName()
Returns the method name
intgetMinorVersion()
Returns the minor version
StringgetResponseMessage()
Returns the response message
intgetStatus()
Return the status
StringtoString()
voidwrite(ASCIIPrintStream pStream)
Writes the method to a given stream

Constructor Detail

HttpClientMethod

public HttpClientMethod(String pMethod, String pRequest, int pMajor, int pMinor)
Ctor. Creates an outgoing http method

Parameters: pMethod The method pRequest The request pMajor The major version pMinor The minor version

HttpClientMethod

public HttpClientMethod(InputStream pReader)
Ctor. Parses a incoming http method from a given input stream

Parameters: pReader The input stream

Throws: IOException

Method Detail

getMajorVersion

public int getMajorVersion()
Returns the major version

Returns: The major version

getMethodName

public String getMethodName()
Returns the method name

Returns: The method name

getMinorVersion

public int getMinorVersion()
Returns the minor version

Returns: The minor version

getResponseMessage

public String getResponseMessage()
Returns the response message

Returns: The response message

getStatus

public int getStatus()
Return the status

Returns: The status

toString

public String toString()

write

public void write(ASCIIPrintStream pStream)
Writes the method to a given stream

Parameters: pStream The stream

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.