edu.pdx.cs399J.web
Class HttpRequestHelper.Response

java.lang.Object
  extended by edu.pdx.cs399J.web.HttpRequestHelper.Response
Enclosing class:
HttpRequestHelper

public static class HttpRequestHelper.Response
extends Object

Encapsulates a response to an HTTP request


Method Summary
 int getCode()
          Returns the HTTP status code of the response
 String getContent()
          Returns the (presumably textual) response from the URL
 int getContentLines()
          Returns the number of lines in the response's content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCode

public int getCode()
Returns the HTTP status code of the response

See Also:
HttpURLConnection.getResponseCode()

getContent

public String getContent()
Returns the (presumably textual) response from the URL

Returns:

getContentLines

public int getContentLines()
Returns the number of lines in the response's content



Copyright © 2000-2009 Portland State University. All Rights Reserved.