Class HttpClientMethod
java.lang.Object
org.sblim.cimclient.internal.http.HttpMethod
org.sblim.cimclient.internal.http.HttpClientMethod
Class HttpClientMethod encapsulates a http client method
-
Constructor Summary
ConstructorsConstructorDescriptionHttpClientMethod
(InputStream pReader) Ctor.HttpClientMethod
(String pMethod, String pRequest, int pMajor, int pMinor) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the major versionReturns the method nameint
Returns the minor versionReturns the response messageint
Return the statustoString()
void
write
(ASCIIPrintStream pStream) Writes the method to a given streamMethods inherited from class org.sblim.cimclient.internal.http.HttpMethod
readLine
-
Constructor Details
-
HttpClientMethod
Ctor. Creates an outgoing http method- Parameters:
pMethod
- The methodpRequest
- The requestpMajor
- The major versionpMinor
- The minor version
-
HttpClientMethod
Ctor. Parses an incoming http method from a given input stream- Parameters:
pReader
- The input stream- Throws:
IOException
-
-
Method Details
-
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
Returns the method name- Returns:
- The method name
-
getStatus
public int getStatus()Return the status- Returns:
- The status
-
write
Writes the method to a given stream- Parameters:
pStream
- The stream
-
getResponseMessage
Returns the response message- Returns:
- The response message
-
toString
-