MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.model.ws
Class HttpResponse

java.lang.Object
  extended by ch.ethz.mxquery.model.ws.HttpMessage
      extended by 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
 
Method Summary
 java.lang.String getHttpInfo()
           
 java.lang.String getHttpMsg()
          Gets this HTTP message as a String
 int getHttpStatusCode()
           
 java.lang.String getHttpVersion()
           
 boolean isErrorMsg()
          Returns true if the message is declared as an error message (http status code).
 
Methods inherited from class ch.ethz.mxquery.model.ws.HttpMessage
addAttribute, getAttribute, getHttpContent, getLengthAttributeValue, getSoapBody, getSoapBody, setHttpContent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponse

public HttpResponse(java.lang.String httpVersion,
                    int httpCode,
                    java.lang.String httpInfo)
             throws java.io.IOException
Constructor

Parameters:
httpVersion - 1.0 or 1.1
httpCode -
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
Method Detail

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

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich