Class HttpClientMethod
- java.lang.Object
-
- org.sblim.cimclient.internal.http.HttpMethod
-
- org.sblim.cimclient.internal.http.HttpClientMethod
-
public class HttpClientMethod extends HttpMethod
Class HttpClientMethod encapsulates a http client method
-
-
Constructor Summary
Constructors Constructor Description HttpClientMethod(java.io.InputStream pReader)
Ctor.HttpClientMethod(java.lang.String pMethod, java.lang.String pRequest, int pMajor, int pMinor)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMajorVersion()
Returns the major versionjava.lang.String
getMethodName()
Returns the method nameint
getMinorVersion()
Returns the minor versionjava.lang.String
getResponseMessage()
Returns the response messageint
getStatus()
Return the statusjava.lang.String
toString()
void
write(ASCIIPrintStream pStream)
Writes the method to a given stream-
Methods inherited from class org.sblim.cimclient.internal.http.HttpMethod
readLine
-
-
-
-
Constructor Detail
-
HttpClientMethod
public HttpClientMethod(java.lang.String pMethod, java.lang.String pRequest, int pMajor, int pMinor)
Ctor. Creates an outgoing http method- Parameters:
pMethod
- The methodpRequest
- The requestpMajor
- The major versionpMinor
- The minor version
-
HttpClientMethod
public HttpClientMethod(java.io.InputStream pReader) throws java.io.IOException
Ctor. Parses an incoming http method from a given input stream- Parameters:
pReader
- The input stream- Throws:
java.io.IOException
-
-
Method Detail
-
getMajorVersion
public int getMajorVersion()
Returns the major version- Returns:
- The major version
-
getMinorVersion
public int getMinorVersion()
Returns the minor version- Returns:
- The minor version
-
getMethodName
public java.lang.String getMethodName()
Returns the method name- Returns:
- The method name
-
getStatus
public int getStatus()
Return the status- Returns:
- The status
-
write
public void write(ASCIIPrintStream pStream)
Writes the method to a given stream- Parameters:
pStream
- The stream
-
getResponseMessage
public java.lang.String getResponseMessage()
Returns the response message- Returns:
- The response message
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-