A B C G H I L N O P R S T U V

A

addCookie(String, String, String, String) - Method in class org.ferris.net.runner.HttpRequestRunner
Add the cookie to the request.
addParameter(String) - Method in class org.ferris.net.runner.HttpRequestRunner
Add the String value of a request parameter and URLEncoder is automatically used to make sure special characters are escaped properly.
addParameter(File) - Method in class org.ferris.net.runner.HttpRequestRunner
Add the File value of a request parameter
addParameters(String[]) - Method in class org.ferris.net.runner.HttpRequestRunner
 
addParameters(File[]) - Method in class org.ferris.net.runner.HttpRequestRunner
 
append(String, double) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is a double.
append(String, int) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is an int.
append(String, short) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is an short.
append(String, boolean) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is a boolean.
append(String, char) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is a char.
append(String, byte) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is a byte.
append(String, long) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is a long.
append(String, float) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is a float.
append(String, String) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is a String, use URLEncoder to encode using encoding UTF-8 to make sure special characters are handled correctly.
append(String, Object) - Method in class org.ferris.net.UrlStringBuilder
Append name/value pair when value is a Object using Object.toString() and then using URLEncoder to encode using encoding UTF-8 to make sure special characters are handled correctly.
append(boolean) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append
append(char) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append
append(byte) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append
append(short) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append
append(int) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append
append(long) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append
append(float) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append
append(double) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append
append(String) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append
append(Object) - Method in class org.ferris.net.UrlStringBuilder
Regular StringBuilder append

B

BasicAuthenticationUrlConnection - Class in org.ferris.net
Opens a URLConnection and uses the given credentials to pass a username and password along for doing HTTP basic authentication.
BasicAuthenticationUrlConnection(URL, String, String) - Constructor for class org.ferris.net.BasicAuthenticationUrlConnection
Establishes a connection which can be read from the InputStream from this object.

C

close() - Method in class org.ferris.net.BasicAuthenticationUrlConnection
Sets all properties to null and closes the InputStream

G

get(String, HttpResponseHandler<M>) - Method in class org.ferris.net.runner.HttpRequestRunner
Make the HTTP request using GET
getCode() - Method in exception org.ferris.net.NetException
 
getCookiePolicy() - Method in class org.ferris.net.runner.HttpRequestRunner
Get the cookie policy, if none is set the default is CookiePolicy.RFC_2109
getHost() - Method in class org.ferris.net.runner.HttpRequestRunner
The "localhost" of the URL "http://localhost:8080/some/path/search.php".
getInputStream() - Method in class org.ferris.net.BasicAuthenticationUrlConnection
Get the InputStream from the URLConnection.
getMessage(Object...) - Method in enum org.ferris.net.NetExceptionCode
 
getParameters() - Method in class org.ferris.net.runner.HttpRequestParser
Return ["fname","lname"] of "/some/kind/of/path/to/resource.jsp?fname=?&lname=?"
getPort() - Method in class org.ferris.net.runner.HttpRequestRunner
The "8080" of the URL "http://localhost:8080/some/path/search.php".
getResource() - Method in class org.ferris.net.runner.HttpRequestParser
Return "/some/kind/of/path/to/resource.jsp" of "/some/kind/of/path/to/resource.jsp?fname=?&lname=?"
getScheme() - Method in class org.ferris.net.runner.HttpRequestRunner
The "http" of the URL "http://localhost:8080/some/path/search.php".
getScheme() - Method in class org.ferris.net.runner.HttpsRequestRunner
The "https" of the URL "https://localhost:8080/some/path/search.php", must begin with a "/" and not end with a "/".
getUrlConnection() - Method in class org.ferris.net.BasicAuthenticationUrlConnection
Get the URLConnection object created by this class's constructor.

H

HttpRequestParser - Class in org.ferris.net.runner
The purpose of this class is to take a relative URL like this "/some/kind/of/path/to/resource.jsp?fname=?&lname=?" and break it into a resource and a list of parameter names where resource = "/some/kind/of/path/to/resource.jsp" and parameter names = ["fname","lname"].
HttpRequestParser(String) - Constructor for class org.ferris.net.runner.HttpRequestParser
Splits the request in a String representing the resource and a List representing the names of the request parameters.
HttpRequestRunner<M> - Class in org.ferris.net.runner
This class makes it easier to make a GET or POST call to a URL, pass request parameters, and process the results which come back.
HttpRequestRunner(AuthScope) - Constructor for class org.ferris.net.runner.HttpRequestRunner
This constructor is used if the HTTP resource is NOT protected by BASIC authentication.
HttpRequestRunner(AuthScope, UsernamePasswordCredentials) - Constructor for class org.ferris.net.runner.HttpRequestRunner
This constructor is used if the HTTP resource IS protected by BASIC authentication.
HttpResponseHandler<M> - Interface in org.ferris.net.runner
This interface defines a way for the results from the web server to be processed.
HttpsRequestRunner<M> - Class in org.ferris.net.runner
The same as HttpRequestRunner only HTTPS is used.
HttpsRequestRunner(AuthScope) - Constructor for class org.ferris.net.runner.HttpsRequestRunner
This constructor is used if the HTTP resource is NOT protected by BASIC authentication.
HttpsRequestRunner(AuthScope, UsernamePasswordCredentials) - Constructor for class org.ferris.net.runner.HttpsRequestRunner
This constructor is used if the HTTP resource IS protected by BASIC authentication.

I

isRedirected(HttpRequest, HttpResponse, HttpContext) - Method in class org.ferris.net.runner.LaxRedirectStrategy
 

L

LaxRedirectStrategy - Class in org.ferris.net.runner
Lax RedirectStrategy implementation that automatically redirects all HEAD, GET and POST requests.
LaxRedirectStrategy() - Constructor for class org.ferris.net.runner.LaxRedirectStrategy
 

N

NetException - Exception in org.ferris.net
Most exceptions, runtime or checked, are fatal and the purpose of this class is to wrap all checked exceptions and rethrow them as a runtime exception.
NetException(NetExceptionCode, Object...) - Constructor for exception org.ferris.net.NetException
 
NetException(NetExceptionCode, Throwable, Object...) - Constructor for exception org.ferris.net.NetException
 
NetExceptionCode - Enum in org.ferris.net
Defines error codes and messages for exceptions.

O

org.ferris.net - package org.ferris.net
Helper and convenience classes related to to the java.net.* package.
org.ferris.net.runner - package org.ferris.net.runner
Provides classes which make it easier to make a GET or POST call to a URL, pass request parameters, and loop over the results which come back.

P

post(String, HttpResponseHandler<M>) - Method in class org.ferris.net.runner.HttpRequestRunner
Make the HTTP request using POST
proxyAuthScope - Static variable in class org.ferris.net.runner.HttpRequestRunner
 
proxyCredentials - Static variable in class org.ferris.net.runner.HttpRequestRunner
 

R

response(InputStream) - Method in interface org.ferris.net.runner.HttpResponseHandler
A response from an HTTP server can be anything so an InputStream allows the handler the most flexibility to respond accordingly.

S

setCookiePolicy(String) - Method in class org.ferris.net.runner.HttpRequestRunner
Set the cookie policy using a value from CookiePolicy.

T

toString() - Method in class org.ferris.net.UrlStringBuilder
Return what's been appended to this builder
toUrl() - Method in class org.ferris.net.UrlStringBuilder
Get a new URL

U

UrlStringBuilder - Class in org.ferris.net
The purpose of this class is to take a URL object convert it to a String, then allow the addition of request query parameters (fname=michael,lname=remijan) and then convert the String back to a URL object.
UrlStringBuilder() - Constructor for class org.ferris.net.UrlStringBuilder
Default constructor
UrlStringBuilder(URL) - Constructor for class org.ferris.net.UrlStringBuilder
Get url.toString() put it in a StringBuilder then append the "?" character.

V

valueOf(String) - Static method in enum org.ferris.net.NetExceptionCode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.ferris.net.NetExceptionCode
Returns an array containing the constants of this enum type, in the order they are declared.

A B C G H I L N O P R S T U V

Copyright © Jun 11, 2009-2011 The Ferris Foundation. All Rights Reserved.