version 1.0

com.actimind.actiwate.http
Interface HttpResponse

All Superinterfaces:
com.actimind.actiwate.log.Loggable, com.actimind.actiwate.Response

public interface HttpResponse
extends com.actimind.actiwate.Response


Method Summary
 java.lang.String getAllHeaders()
          Returns string containing all headers, one in a line.
 java.lang.String getHeaderValue(java.lang.String name)
          Returns value of header with specified name, or null is such header does not exist.
 java.lang.String getRedirectUrl()
           
 int getStatusCode()
          Returns status code of the response.
 java.lang.String getStatusText()
          Returns status text of the response.
 boolean isRedirect()
           
 
Methods inherited from interface com.actimind.actiwate.Response
getContentCharset, getContentType, getErrorText, getResponseBodyAsStream, getResponseBodyAsString, getResponseBodyAsString, getURL, hasBody, isError
 
Methods inherited from interface com.actimind.actiwate.log.Loggable
toLog
 

Method Detail

getStatusCode

public int getStatusCode()
Returns status code of the response.

Returns:
status code of the response.

getStatusText

public java.lang.String getStatusText()
Returns status text of the response.

Returns:
status text of the response.

getHeaderValue

public java.lang.String getHeaderValue(java.lang.String name)
Returns value of header with specified name, or null is such header does not exist.

Parameters:
name - header name.
Returns:
header value.

getAllHeaders

public java.lang.String getAllHeaders()
Returns string containing all headers, one in a line.

Returns:
string containing all headers.

isRedirect

public boolean isRedirect()

getRedirectUrl

public java.lang.String getRedirectUrl()


Copyright © 2007 Actimind, Inc. All Rights Reserved.