ch.ethz.mxquery.model.ws
Class HttpResponse
java.lang.Object
ch.ethz.mxquery.model.ws.HttpMessage
ch.ethz.mxquery.model.ws.HttpResponse
public class HttpResponse
- extends HttpMessage
Constructor Summary |
HttpResponse(java.io.InputStreamReader inputStreamReader)
|
HttpResponse(java.lang.String response)
Constructor. |
HttpResponse(java.lang.String httpVersion,
int httpCode,
java.lang.String httpInfo)
Constructor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpResponse
public HttpResponse(java.lang.String httpVersion,
int httpCode,
java.lang.String httpInfo)
throws java.io.IOException
- Constructor
- Parameters:
httpVersion
- 1.0 or 1.1httpCode
- httpInfo
-
- Throws:
java.io.IOException
HttpResponse
public HttpResponse(java.io.InputStreamReader inputStreamReader)
throws java.io.IOException
- Throws:
java.io.IOException
HttpResponse
public HttpResponse(java.lang.String response)
throws java.io.IOException
- Constructor. Parses a (String-)HTTP response.
- Parameters:
response
- HTTP response as a String
- Throws:
java.io.IOException
getHttpVersion
public java.lang.String getHttpVersion()
getHttpStatusCode
public int getHttpStatusCode()
getHttpInfo
public java.lang.String getHttpInfo()
getHttpMsg
public java.lang.String getHttpMsg()
- Description copied from class:
HttpMessage
- Gets this HTTP message as a String
- Overrides:
getHttpMsg
in class HttpMessage
- Returns:
- the full http message as string
isErrorMsg
public boolean isErrorMsg()
- Returns true if the message is declared as an error message (http status
code).
- Returns:
- true if the result is not OK
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich