A B C D E F G H I L M N P R S T U V W

A

add(String[], String) - Static method in class net.noderunner.http.HttpUtil
Creates and returns a new array one entry longer, with a new value at the end.
add(MessageHeader) - Method in class net.noderunner.http.MessageHeaders
Adds a new header to the existing list array.
add(String, String) - Method in class net.noderunner.http.MessageHeaders
Adds a new header to the existing list array.
addCookie(Cookie) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
addDateHeader(String, long) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
addHeader(String, String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
addIntHeader(String, int) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
asList() - Method in class net.noderunner.http.MessageHeaders
Returns the headers as a read-only list.
available() - Method in class net.noderunner.http.LimitedInputStream
Calls the wrapped stream.

B

BasicHttpClient - Class in net.noderunner.http
A very basic HTTP client implementation.
BasicHttpClient(Socket) - Constructor for class net.noderunner.http.BasicHttpClient
Constructs a BasicHttpClient that communicates over a socket.
BasicHttpClient(OutputStream, InputStream) - Constructor for class net.noderunner.http.BasicHttpClient
Constructs a BasicHttpClient that communicates over input and output streams.
BasicHttpServer - Class in net.noderunner.http
A very basic HTTP server implementation.
BasicHttpServer(Socket) - Constructor for class net.noderunner.http.BasicHttpServer
Constructs a BasicHttpServer that communicates over a socket.
BasicHttpServer(OutputStream, InputStream) - Constructor for class net.noderunner.http.BasicHttpServer
Constructs a BasicHttpServer that communicates over an input and output stream.
BasicHttpSession - Class in net.noderunner.http.servlet
Basic (mostly dummy) implementation of HTTP session.
BasicHttpSession() - Constructor for class net.noderunner.http.servlet.BasicHttpSession
 
ByteArrayDataPoster - Class in net.noderunner.http
A utility class for sending an array of bytes to an HTTP server or client.
ByteArrayDataPoster(byte[]) - Constructor for class net.noderunner.http.ByteArrayDataPoster
Constructs a ByteArrayDataPoster, which will send an entire byte array.
ByteArrayDataPoster(byte[], int, int) - Constructor for class net.noderunner.http.ByteArrayDataPoster
Constructs a ByteArrayDataPoster which will send part of a byte array.

C

checkToken(String) - Static method in class net.noderunner.http.ContentType
Checks a token syntax.
ChunkedInputStream - Class in net.noderunner.http
An InputStream wrapper supporting the chunked transfer encoding.
ChunkedInputStream(InputStream) - Constructor for class net.noderunner.http.ChunkedInputStream
Constructs a chunked input stream wrapping input.
ChunkedOutputStream - Class in net.noderunner.http
An OutputStream wrapper that supports the chunked transfer encoding.
ChunkedOutputStream(OutputStream) - Constructor for class net.noderunner.http.ChunkedOutputStream
Constructs an output stream wrapping the given stream.
ClientRequest - Class in net.noderunner.http
Contains an HTTP client request.
ClientRequest(RequestLine, MessageHeaders) - Constructor for class net.noderunner.http.ClientRequest
Constructs a ClientRequestImpl by parts.
ClientRequest(RequestLine, MessageHeaders, DataPoster) - Constructor for class net.noderunner.http.ClientRequest
Constructs a ClientRequestImpl by parts.
ClientResponse - Class in net.noderunner.http
Contains the contents of an HTTP response message.
ClientResponse(InputStream) - Constructor for class net.noderunner.http.ClientResponse
Constructs a ClientResponseImpl by parsing an input stream.
close() - Method in class net.noderunner.http.BasicHttpClient
Closes the underlying input and output streams.
close() - Method in class net.noderunner.http.BasicHttpServer
Closes the underlying input and output streams.
close() - Method in class net.noderunner.http.ChunkedInputStream
Closes the underlying input stream.
close() - Method in class net.noderunner.http.ChunkedOutputStream
Closes this output stream, calling doneOutput once before closing.
close() - Method in class net.noderunner.http.EasyHttpClient
Closes the wrapped HttpClient.
close() - Method in interface net.noderunner.http.HttpClient
Closes any underlying sockets or streams.
close() - Method in interface net.noderunner.http.HttpServer
Closes and releases any open connections or resources used by this server.
close() - Method in class net.noderunner.http.LimitedInputStream
Closes the underlying input stream.
close() - Method in class net.noderunner.http.LimitedOutputStream
Closes the underlying output stream.
close() - Method in class net.noderunner.http.RetryHttpClient
Closes the wrapped HttpClient.
close() - Method in class net.noderunner.http.ThreadedHttpServer
Closes as soon as possible.
contains(MessageHeader) - Method in class net.noderunner.http.MessageHeaders
Returns true if header is within the headers.
containsHeader(String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
ContentType - Class in net.noderunner.http
Content type field value class, see RFC 2045 section 5.1 on this.
ContentType(String, String) - Constructor for class net.noderunner.http.ContentType
Constructs a new ContentType.
ContentType(String, String, List<ContentType.Parameter>) - Constructor for class net.noderunner.http.ContentType
Constructs a new ContentType.
ContentType.Parameter - Class in net.noderunner.http
Content type parameter, see parameter definition in RFC 2045.
ContentType.Parameter(String, String) - Constructor for class net.noderunner.http.ContentType.Parameter
Constructs a new Parameter.
ContentType.StandardType - Enum in net.noderunner.http
Standard content types.
count() - Method in class net.noderunner.http.MessageHeaders
Returns the number of headers.
create(URL, Method) - Static method in class net.noderunner.http.RequestLine
Creates and returns a request line based on a URL and method.

D

DataPoster - Interface in net.noderunner.http
Interface for sending data during an HTTP POST or PUT operation.
DEFAULT_MAX_TRIES - Static variable in class net.noderunner.http.RetryHttpClient
Default number of tries.
defaultHeaders(URL) - Static method in class net.noderunner.http.MessageHeaders
Creates and returns default HTTP headers based on a URL.
discard(BufferedReader) - Static method in class net.noderunner.http.HttpUtil
Discards the contents of a BufferedReader.
doGet() - Method in class net.noderunner.http.EasyHttpClient
Performs a GET operation, returning a BufferedReader, which can be used to read the response body.
doneOutput() - Method in class net.noderunner.http.ChunkedOutputStream
This method differs from close as it merely writes the final chunk and does not close the underlying output stream.
doOperation() - Method in class net.noderunner.http.EasyHttpClient
Performs whatever operation was specified in the request line, as passed into the constructor.
doOperation(InputStream, int, String) - Method in class net.noderunner.http.EasyHttpClient
Performs whatever operation was specified in the request, as passed into the constructor.
doPost(byte[], int, int, String) - Method in class net.noderunner.http.EasyHttpClient
Performs a POST operation, returning a BufferedReader for reading the response body.
doPostUrlEncoded(byte[]) - Method in class net.noderunner.http.EasyHttpClient
Performs a POST operation, returning a BufferedReader for reading the response body.

E

EasyHttpClient - Class in net.noderunner.http
An easy-to-use HTTP client that can perform any standard HTTP operation.
EasyHttpClient(HttpClient, RequestLine, MessageHeaders) - Constructor for class net.noderunner.http.EasyHttpClient
Constructs a new HTTP client with a specific wrapped client, request line, and headers.
EasyHttpClient(URL, Method) - Constructor for class net.noderunner.http.EasyHttpClient
Constructs a new HTTP client.
EasyHttpClient(HttpClient, URL, Method) - Constructor for class net.noderunner.http.EasyHttpClient
Constructs a new HTTP client.
EasyHttpClient(URL) - Constructor for class net.noderunner.http.EasyHttpClient
Constructs a new HTTP client.
encodeRedirectURL(String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
encodeRedirectUrl(String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
encodeURL(String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
encodeUrl(String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
equals(Object) - Method in class net.noderunner.http.HttpVersion
Returns true if the other object is an HttpVersion with the same minor and major versions.
equals(Object) - Method in class net.noderunner.http.MessageHeader
 
exception(Exception) - Method in class net.noderunner.http.ThreadedHttpServer
Called when an exception occurs when listening; does nothing now.

F

flush() - Method in class net.noderunner.http.ChunkedOutputStream
Flushes this output stream.
flush() - Method in class net.noderunner.http.LimitedOutputStream
Flushes the underlying output stream.
flushBuffer() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
FN_CONNECTION - Static variable in class net.noderunner.http.MessageHeader
Field name for the connection header.
FN_CONTENT_LENGTH - Static variable in class net.noderunner.http.MessageHeader
Field name for the content-length header.
FN_CONTENT_TYPE - Static variable in class net.noderunner.http.MessageHeader
Field name for the content-type header.
FN_HOST - Static variable in class net.noderunner.http.MessageHeader
Field name for the host header.
FN_LOCATION - Static variable in class net.noderunner.http.MessageHeader
Field name for the location header.
FN_REFERER - Static variable in class net.noderunner.http.MessageHeader
Field name for the referer header.
FN_SERVER - Static variable in class net.noderunner.http.MessageHeader
Field name for the server header.
FN_TRANSFER_ENCODING - Static variable in class net.noderunner.http.MessageHeader
Field name for the user agent header.
FN_USER_AGENT - Static variable in class net.noderunner.http.MessageHeader
Field name for the user agent header.

G

GeneralDataPoster - Class in net.noderunner.http
A utility class for sending binary data to an HTTP server or client.
GeneralDataPoster(InputStream, int) - Constructor for class net.noderunner.http.GeneralDataPoster
Constructs a new GeneralDataPoster that outputs data from the specified stream.
getAttribute() - Method in class net.noderunner.http.ContentType.Parameter
Returns attribute.
getAttribute(String) - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns attribute value by name.
getAttribute(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getAttributeNames() - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns attribute enumeration.
getAttributeNames() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getAuthType() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getBufferSize() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
getCharacterEncoding() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getCharacterEncoding() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
getContentLength() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getContentType() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getContentType() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
getContextPath() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getCookies() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getCreationTime() - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns time this object was created.
getDataPoster() - Method in class net.noderunner.http.ClientRequest
Returns an optional call-back interface for sending HTTP data to the server.
getDataPoster() - Method in class net.noderunner.http.ServerResponse
 
getDateHeader(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getDefaultBufferSize() - Method in class net.noderunner.http.GeneralDataPoster
Return the default buffer size, which is 1024 bytes.
getEntityHeaders() - Method in class net.noderunner.http.ChunkedInputStream
Returns "trailer" entity headers, which appear at the end of a chunked encoding request.
getFieldContent() - Method in class net.noderunner.http.MessageHeader
Returns the value of this header.
getFieldContent(String) - Method in class net.noderunner.http.MessageHeaders
Returns the field content of the first header matching a given field name.
getFieldName() - Method in class net.noderunner.http.MessageHeader
Returns the name of the header, which for consistency is in lower-case form.
getHeader(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getHeaderNames() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getHeaders() - Method in class net.noderunner.http.EasyHttpClient
Returns the message headers in use.
getHeaders() - Method in class net.noderunner.http.Request
Returns headers from the HTTP request.
getHeaders() - Method in class net.noderunner.http.Response
 
getHeaders(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getHttpVersion() - Method in class net.noderunner.http.RequestLine
Returns the version of this request.
getHttpVersion() - Method in class net.noderunner.http.StatusLine
Returns the status' HTTP version.
getId() - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns ID based on timestamp.
getInputStream() - Method in class net.noderunner.http.ClientResponse
Returns a stream for reading data from the HTTP server.
getInputStream() - Method in class net.noderunner.http.ServerRequest
 
getInputStream() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getIntHeader(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getLastAccessedTime() - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns zero.
getLastResponse() - Method in class net.noderunner.http.EasyHttpClient
Returns the last HTTP response, including headers, resulting from the last doPost, doGet, or doOperation call.
getLocalAddr() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getLocale() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getLocale() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
getLocales() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getLocalName() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getLocalPort() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getMajorVersion() - Method in class net.noderunner.http.HttpVersion
Returns the major version number in use.
getMaxInactiveInterval() - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns zero.
getMethod() - Method in class net.noderunner.http.RequestLine
Returns the name of the request method.
getMethod() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getMinorVersion() - Method in class net.noderunner.http.HttpVersion
Returns the minor version number in use.
getNames() - Method in class net.noderunner.http.MessageHeaders
Returns a list of field names, read-only.
getOutputStream() - Method in class net.noderunner.http.BasicHttpClient
 
getOutputStream() - Method in class net.noderunner.http.BasicHttpServer
 
getOutputStream() - Method in interface net.noderunner.http.HttpClient
Returns a stream for writing data to, if data is to be sent to the server.
getOutputStream() - Method in interface net.noderunner.http.HttpServer
Returns a stream for writing data to, if data is to be sent to the client.
getOutputStream() - Method in class net.noderunner.http.RetryHttpClient
Returns a stream for writing data to, if data is to be sent to the server.
getOutputStream() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
getParameter(String) - Method in class net.noderunner.http.ContentType
Returns the first parameter matching this attribute string.
getParameter(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getParameterMap() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getParameterNames() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getParameters() - Method in class net.noderunner.http.ContentType
Returns parameters, unmodifiable.
getParameterValue(String) - Method in class net.noderunner.http.ContentType
Returns the first parameter value matching this attribute string.
getParameterValues(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getPathInfo() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getPathTranslated() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getPort() - Method in class net.noderunner.http.ThreadedHttpServer
 
getProtocol() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getQueryString() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getQuoteValue() - Method in class net.noderunner.http.ContentType.Parameter
Returns the quoted value of this parameter.
getReader() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getRealPath(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getReasonPhrase() - Method in class net.noderunner.http.StatusLine
Returns the status reason phrase.
getRemoteAddr() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getRemoteAddress() - Method in class net.noderunner.http.ThreadedHttpServer.Request
Returns address.
getRemoteHost() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getRemotePort() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getRemoteUser() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getRequestDispatcher(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getRequestedSessionId() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getRequestLine() - Method in class net.noderunner.http.Request
Returns the request line.
getRequestURI() - Method in class net.noderunner.http.RequestLine
Returns the URI of this request.
getRequestURI() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getRequestURL() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getScheme() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getServer() - Method in class net.noderunner.http.ThreadedHttpServer.Request
Returns server.
getServerName() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getServerPort() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getServletContext() - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns null.
getServletPath() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getSession() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getSession(boolean) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getSessionContext() - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns null.
getStatusCode() - Method in class net.noderunner.http.StatusLine
Returns the three-digit status code.
getStatusLine() - Method in class net.noderunner.http.Response
 
getSubtype() - Method in class net.noderunner.http.ContentType
Returns content sub type.
getType() - Method in class net.noderunner.http.ContentType
Returns type.
getUserPrincipal() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
getValue() - Method in class net.noderunner.http.ContentType.Parameter
Returns value, unquoted.
getValue(String) - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns the value of the attribute.
getValueNames() - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns the value names.
getWriter() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 

H

handleRequest(ThreadedHttpServer.Request) - Method in class net.noderunner.http.servlet.ServletServer
 
handleRequest(ThreadedHttpServer.Request) - Method in class net.noderunner.http.ThreadedHttpServer
Override this method to handle the request.
hashCode() - Method in class net.noderunner.http.HttpVersion
Returns the hashcode.
hashCode() - Method in class net.noderunner.http.MessageHeader
Returns the hashcode.
HTTP10 - Static variable in class net.noderunner.http.HttpVersion
Represents HTTP version 1.0
HTTP11 - Static variable in class net.noderunner.http.HttpVersion
Represents HTTP version 1.1
HTTP11_100 - Static variable in class net.noderunner.http.StatusLine
Basic Continue message from an HTTP/1.1 server.
HTTP11_200_OK - Static variable in class net.noderunner.http.StatusLine
Basic OK message from an HTTP/1.1 server.
HTTP11_204 - Static variable in class net.noderunner.http.StatusLine
Basic 204 message from an HTTP/1.1 server.
HTTP11_301 - Static variable in class net.noderunner.http.StatusLine
Basic 301 message from an HTTP/1.1 server.
HTTP11_404 - Static variable in class net.noderunner.http.StatusLine
Basic 404 message from an HTTP/1.1 server.
HTTP_VERSION_BEGIN - Static variable in class net.noderunner.http.HttpVersion
The string HTTP/.
HttpClient - Interface in net.noderunner.http
Specifies methods for an HTTP client.
HttpDateFormat - Class in net.noderunner.http.servlet
Parses three possible date formats: RFC 1123, RFC 1036, and ANSI C asctime().
HttpDateFormat() - Constructor for class net.noderunner.http.servlet.HttpDateFormat
Constructs a new HttpDateFormat using RFC 1123 as output.
HttpException - Exception in net.noderunner.http
This exception is used to indicate the use of the HTTP protocol was incorrect.
HttpException(String) - Constructor for exception net.noderunner.http.HttpException
Construct a new HttpException with a message.
HttpException() - Constructor for exception net.noderunner.http.HttpException
Construct a new HttpException with no message.
HttpException(Exception) - Constructor for exception net.noderunner.http.HttpException
Construct a new HttpException with cause.
HttpServer - Interface in net.noderunner.http
Specifies methods for an HTTP server, which is handling a single request from an HTTP client.
HttpServletRequestImpl - Class in net.noderunner.http.servlet
Simple HTTP servlet request.
HttpServletRequestImpl(ServerRequest) - Constructor for class net.noderunner.http.servlet.HttpServletRequestImpl
Constructs a new HttpServletRequestImpl based on a server request.
HttpServletResponseImpl - Class in net.noderunner.http.servlet
Internal implementation.
HttpServletResponseImpl() - Constructor for class net.noderunner.http.servlet.HttpServletResponseImpl
 
HttpUtil - Class in net.noderunner.http
Contains utility functions for common HTTP I/O tasks.
HttpVersion - Class in net.noderunner.http
This represents an HTTP-Version data object, as found in RFC 2616.
HttpVersion(String) - Constructor for class net.noderunner.http.HttpVersion
Constructs a HttpVersionImpl out of a parsable String.
HttpVersion(int, int) - Constructor for class net.noderunner.http.HttpVersion
Constructs a HttpVersionImpl out of version number parts.

I

IllegalHttpStateException - Exception in net.noderunner.http
Unchecked exception used to indicate the use of the HTTP library (such as call order) was incorrectly made.
IllegalHttpStateException(String) - Constructor for exception net.noderunner.http.IllegalHttpStateException
Constructs a new IllegalHttpStateException with a message.
IllegalHttpStateException() - Constructor for exception net.noderunner.http.IllegalHttpStateException
Constructs a new IllegalHttpStateException with no message.
invalidate() - Method in class net.noderunner.http.servlet.BasicHttpSession
Clears attributes.
isCommitted() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
isContinue() - Method in class net.noderunner.http.Response
Returns true if the response should be continued.
isEndChunk() - Method in class net.noderunner.http.ChunkedInputStream
Returns true if the end chunk was read.
isNew() - Method in class net.noderunner.http.servlet.BasicHttpSession
Returns true.
isRequestedSessionIdFromCookie() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
isRequestedSessionIdFromURL() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
isRequestedSessionIdFromUrl() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
isRequestedSessionIdValid() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
isSecure() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
isUserInRole(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 

L

LimitedInputStream - Class in net.noderunner.http
An InputStream wrapper which allows only a certain number of bytes to be read.
LimitedInputStream(InputStream, int) - Constructor for class net.noderunner.http.LimitedInputStream
Constructs a limited input stream.
LimitedOutputStream - Class in net.noderunner.http
An OutputStream wrapper which allows only a certain number of bytes to be output.
LimitedOutputStream(OutputStream, int) - Constructor for class net.noderunner.http.LimitedOutputStream
Constructs a limited output stream.

M

main(String[]) - Static method in class net.noderunner.http.EasyHttpClient
Performs a command-line test.
makeHostHeader(URL) - Static method in class net.noderunner.http.MessageHeader
Returns a new Host header, appropriate to the given URL.
makeHttpClient(URL) - Method in class net.noderunner.http.RetryHttpClient
Returns a newly constructed HTTP client for a given URL.
makeSocket(URL) - Method in class net.noderunner.http.RetryHttpClient
Returns a newly constructed socket for a given URL.
makeSSLSocket(URL) - Method in class net.noderunner.http.RetryHttpClient
Returns a newly constructed SSL socket for a given URL.
mark(int) - Method in class net.noderunner.http.LimitedInputStream
Calls the wrapped stream.
markSupported() - Method in class net.noderunner.http.LimitedInputStream
Calls the wrapped stream.
MessageHeader - Class in net.noderunner.http
This is an immutable implementation of the MessageHeader interface.
MessageHeader(String, String) - Constructor for class net.noderunner.http.MessageHeader
Initialize using a field-name and field-value.
MessageHeaders - Class in net.noderunner.http
Contains a list of message headers.
MessageHeaders(MessageHeader[]) - Constructor for class net.noderunner.http.MessageHeaders
Constructs a new MessageHeaders.
MessageHeaders(List<MessageHeader>) - Constructor for class net.noderunner.http.MessageHeaders
Constructs a new MessageHeaders.
MessageHeaders() - Constructor for class net.noderunner.http.MessageHeaders
Constructs a new MessageHeaders with no headers.
Method - Enum in net.noderunner.http
Standard HTTP methods.
MH_CONNECTION_CLOSE - Static variable in class net.noderunner.http.MessageHeader
Use this MessageHeader for indicating connection close.
MH_CONNECTION_KEEP_ALIVE - Static variable in class net.noderunner.http.MessageHeader
Use this MessageHeader for indicating a keep-alive connection.
MH_TRANSFER_ENCODING_CHUNKED - Static variable in class net.noderunner.http.MessageHeader
Use this MessageHeader for sending chunked data.
MH_URL_ENCODED - Static variable in class net.noderunner.http.MessageHeader
Use this MessageHeader for indicating a URL encoded content type.
MH_USER_AGENT - Static variable in class net.noderunner.http.MessageHeader
Default user agent string for this library.

N

net.noderunner.http - package net.noderunner.http
Provides classes for sending and receiving data over HTTP.
net.noderunner.http.servlet - package net.noderunner.http.servlet
**EXPERIMENTAL** HttpServlet server library.

P

parse(String) - Static method in class net.noderunner.http.ContentType
Factory method, parsing a content type line and generating a content type object.
parse(String) - Static method in class net.noderunner.http.MessageHeader
Parse using a message-header string.
parse(String) - Method in class net.noderunner.http.servlet.HttpDateFormat
Parses an HTTP date.
parseStatusLine(String) - Static method in class net.noderunner.http.StatusLine
Returns either StatusLine.HTTP11_200_OK or a newly constructed StatusLine object.
parseVersion(String) - Static method in class net.noderunner.http.HttpVersion
Based on the string supplied, returns either HttpVersion.HTTP10 or HttpVersion.HTTP11 or a newly constructed HttpVersion instance.
putValue(String, Object) - Method in class net.noderunner.http.servlet.BasicHttpSession
Puts the value.

R

read(byte[], int, int) - Method in class net.noderunner.http.ChunkedInputStream
Reads up to len bytes of data from the input stream into an array of bytes.
read() - Method in class net.noderunner.http.ChunkedInputStream
Reads and return a single byte from this input stream, or -1 if end of file has been encountered.
read(InputStream) - Static method in class net.noderunner.http.HttpUtil
Reads an input stream until EOF.
read(BufferedReader) - Static method in class net.noderunner.http.HttpUtil
Returns the contents of a BufferedReader as a String.
read(byte[], int, int) - Method in class net.noderunner.http.LimitedInputStream
Reads up to len bytes of data from the input stream into an array of bytes, possibly less if the read limit is reached.
read() - Method in class net.noderunner.http.LimitedInputStream
Reads and returns a single byte from this input stream, or -1 if end of file or the read limit has been encountered.
readFully() - Method in class net.noderunner.http.ClientResponse
Reads a response's input stream until EOF.
readFully(InputStream) - Static method in class net.noderunner.http.HttpUtil
Reads an input stream until EOF.
readFully() - Method in class net.noderunner.http.ServerRequest
Reads a response's input stream until EOF.
readHeaders(InputStream) - Static method in class net.noderunner.http.MessageHeaders
Returns a list of headers from a binary input stream.
readHttpLine(InputStream) - Static method in class net.noderunner.http.HttpUtil
Returns a single line from a 8-bit InputStream (which is assumed to be ASCII).
readRequest() - Method in class net.noderunner.http.BasicHttpServer
 
readRequest() - Method in interface net.noderunner.http.HttpServer
Reads the HTTP Request information.
readResponse() - Method in class net.noderunner.http.BasicHttpClient
 
readResponse() - Method in interface net.noderunner.http.HttpClient
Reads the response data from the HTTP server.
readResponse() - Method in class net.noderunner.http.RetryHttpClient
Reads the response data from the HTTP server.
remove(String) - Method in class net.noderunner.http.MessageHeaders
Removes a header by field name.
removeAttribute(String) - Method in class net.noderunner.http.servlet.BasicHttpSession
Removes an attribute by name.
removeAttribute(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
removeValue(String) - Method in class net.noderunner.http.servlet.BasicHttpSession
Removes a value by name.
Request - Class in net.noderunner.http
Contains an HTTP request.
Request(RequestLine, MessageHeaders) - Constructor for class net.noderunner.http.Request
Constructs a RequestImpl by parts.
RequestLine - Class in net.noderunner.http
This is a immutable implementation of an HTTP request line.
RequestLine(Method, String) - Constructor for class net.noderunner.http.RequestLine
Constructs using a method, a request URI, and the default HTTP/1.1 version.
RequestLine(Method, String, HttpVersion) - Constructor for class net.noderunner.http.RequestLine
Constructs using all Request-Line parts.
RequestLine(String) - Constructor for class net.noderunner.http.RequestLine
Construct using an unparsed request line.
RequestLine(RequestLine, String) - Constructor for class net.noderunner.http.RequestLine
Copy-constructs a new RequestLine using a different requestURI.
reset() - Method in class net.noderunner.http.LimitedInputStream
Calls the wrapped stream.
reset() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
resetBuffer() - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
Response - Class in net.noderunner.http
Contains the contents of an HTTP response message.
Response(StatusLine, MessageHeaders) - Constructor for class net.noderunner.http.Response
Constructs a Response object by parts.
RetryHttpClient - Class in net.noderunner.http
A HttpClient implementation that retries contacting a remote URL and allows for persistant connections.
RetryHttpClient(URL, int) - Constructor for class net.noderunner.http.RetryHttpClient
Constructs a RetryHttpClient that retries a number of times.
RetryHttpClient(URL) - Constructor for class net.noderunner.http.RetryHttpClient
Constructs a RetryHttpClient that retries 3 times.
retrySendRequest(IOException, int) - Method in class net.noderunner.http.RetryHttpClient
Callback that indicates the connection failed and will be retried.
run() - Method in class net.noderunner.http.ThreadedHttpServer
 

S

sendData(OutputStream) - Method in class net.noderunner.http.ByteArrayDataPoster
Writes the byte array to the supplied output stream.
sendData(OutputStream) - Method in interface net.noderunner.http.DataPoster
Sends data to the remote host.
sendData(OutputStream) - Method in class net.noderunner.http.GeneralDataPoster
Copies our input stream data to the supplied output stream.
sendError(int) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
sendError(int, String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
sendRedirect(String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
ServerRequest - Class in net.noderunner.http
Specifies an HTTP request.
ServerRequest(InputStream) - Constructor for class net.noderunner.http.ServerRequest
Constructs a ServerRequest by parsing an input stream.
ServerResponse - Class in net.noderunner.http
Contains the contents of an HTTP response message.
ServerResponse(StatusLine, MessageHeaders) - Constructor for class net.noderunner.http.ServerResponse
Constructs a ServerResponseImpl by parts, with no data poster.
ServerResponse(StatusLine, MessageHeaders, DataPoster) - Constructor for class net.noderunner.http.ServerResponse
Constructs a ServerResponseImpl by parts.
ServerResponse(StatusLine, MessageHeader[]) - Constructor for class net.noderunner.http.ServerResponse
Constructs a ServerResponseImpl by parts.
ServletServer - Class in net.noderunner.http.servlet
Extends the threaded HTTP server by sending requests to a single servlet.
ServletServer(HttpServlet) - Constructor for class net.noderunner.http.servlet.ServletServer
Constructs a new ServletServer.
ServletServer(HttpServlet, ServerSocket) - Constructor for class net.noderunner.http.servlet.ServletServer
Constructs a new ServletServer.
ServletServer(HttpServlet, int) - Constructor for class net.noderunner.http.servlet.ServletServer
Constructs a new ServletServer for this local port.
set(MessageHeader) - Method in class net.noderunner.http.MessageHeaders
Sets a new header to the existing list array.
set(String, String) - Method in class net.noderunner.http.MessageHeaders
Sets a new header in the existing list array.
setAttribute(String, Object) - Method in class net.noderunner.http.servlet.BasicHttpSession
Sets an attribute.
setAttribute(String, Object) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
setBufferSize(int) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
setCharacterEncoding(String) - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
setCharacterEncoding(String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
setCheckStatus(boolean) - Method in class net.noderunner.http.EasyHttpClient
Sets if the status will automatically be checked for a 200-level response or whether or not the status will be ignored.
setContentLength(int) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
setContentType(String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
setDateHeader(String, long) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
setFile(String) - Method in class net.noderunner.http.EasyHttpClient
Allows a subsequent operation to be repeated with a different file on the same connection.
setFollowRedirects(boolean) - Method in class net.noderunner.http.RetryHttpClient
Sets whether HTTP redirects should be followed.
setHeader(String, String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
setIntHeader(String, int) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
setLocale(Locale) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
setMaxInactiveInterval(int) - Method in class net.noderunner.http.servlet.BasicHttpSession
Sets inactive interval.
setMethod(Method) - Method in class net.noderunner.http.EasyHttpClient
Allows a subsequent operation to be repeated with a different method on the same connection.
setSkipContinues(boolean) - Method in class net.noderunner.http.RetryHttpClient
Sets whether HTTP continue responses should be skipped.
setSocketOptions(Socket) - Method in class net.noderunner.http.RetryHttpClient
Sets the socket options to use.
setStatus(int) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
setStatus(int, String) - Method in class net.noderunner.http.servlet.HttpServletResponseImpl
 
ss - Variable in class net.noderunner.http.ThreadedHttpServer
 
start() - Method in class net.noderunner.http.ThreadedHttpServer
Starts listening in a new thread.
StatusLine - Class in net.noderunner.http
This is a immutable implementation of the StatusLine interface.
StatusLine(int) - Constructor for class net.noderunner.http.StatusLine
Constructs this object using a status code, HTTP version 1.1, and blank reason.
StatusLine(HttpVersion, int, String) - Constructor for class net.noderunner.http.StatusLine
Constructs this object using Status-Line parts.
StatusLine(String) - Constructor for class net.noderunner.http.StatusLine
Constructs a StatusLineImpl using an unparsed request line.
StatusLine(int, String) - Constructor for class net.noderunner.http.StatusLine
Constructs this object using Status-Line parts.

T

ThreadedHttpServer - Class in net.noderunner.http
This class is for unit testing.
ThreadedHttpServer(ServerSocket) - Constructor for class net.noderunner.http.ThreadedHttpServer
Constructs a new SingleHttpServer, initialized with a server socket.
ThreadedHttpServer() - Constructor for class net.noderunner.http.ThreadedHttpServer
 
ThreadedHttpServer.Request - Class in net.noderunner.http
Inner class for handling a single HTTP server request.
ThreadedHttpServer.Request(HttpServer, InetSocketAddress) - Constructor for class net.noderunner.http.ThreadedHttpServer.Request
Constructs a new Request.
toString() - Method in class net.noderunner.http.BasicHttpClient
Returns debug information.
toString() - Method in class net.noderunner.http.BasicHttpServer
Returns debug information.
toString() - Method in class net.noderunner.http.ByteArrayDataPoster
 
toString() - Method in class net.noderunner.http.ChunkedInputStream
Returns a debug string.
toString() - Method in class net.noderunner.http.ChunkedOutputStream
 
toString() - Method in class net.noderunner.http.ClientRequest
Returns a debug string.
toString() - Method in class net.noderunner.http.ClientResponse
Returns a debug string showing the response information contained within.
toString() - Method in class net.noderunner.http.ContentType.Parameter
Returns a formatted attribute=value string.
toString() - Method in class net.noderunner.http.ContentType
 
toString() - Method in class net.noderunner.http.EasyHttpClient
Returns debug information.
toString() - Method in class net.noderunner.http.GeneralDataPoster
Returns a debug string.
toString() - Method in class net.noderunner.http.HttpVersion
Returns
toString() - Method in class net.noderunner.http.LimitedInputStream
Returns a debug string.
toString() - Method in class net.noderunner.http.LimitedOutputStream
Returns a debug string.
toString() - Method in class net.noderunner.http.MessageHeader
Should return this MessageHeader as:
toString() - Method in class net.noderunner.http.MessageHeaders
Returns a debug string.
toString() - Method in class net.noderunner.http.Request
Returns a debug string.
toString() - Method in class net.noderunner.http.RequestLine
Returns this RequestLine as:
toString() - Method in class net.noderunner.http.Response
Returns a debug string showing the response information contained within.
toString() - Method in class net.noderunner.http.RetryHttpClient
Returns debug information.
toString() - Method in class net.noderunner.http.ServerRequest
Returns a debug string.
toString() - Method in class net.noderunner.http.ServerResponse
Returns a debug string showing the response information contained within.
toString() - Method in class net.noderunner.http.servlet.HttpServletRequestImpl
 
toString() - Method in class net.noderunner.http.StatusLine
Returns this StatusLine as:
toString() - Method in class net.noderunner.http.ThreadedHttpServer
Returns a debug string.

U

uncloseableInputStream(InputStream) - Static method in class net.noderunner.http.HttpUtil
Returns a new input stream delegating to the given input stream that does nothing when closed.
urlDecode(String) - Static method in class net.noderunner.http.HttpUtil
URL decodes a string into a Map.
urlDecode(InputStream) - Static method in class net.noderunner.http.HttpUtil
URL decodes an input stream.
urlDecodeToArray(InputStream) - Static method in class net.noderunner.http.HttpUtil
URL decodes an input stream.
urlDecodeToArray(String) - Static method in class net.noderunner.http.HttpUtil
Performs the same operation as HttpUtil.urlDecode(java.lang.String), except the returned data is in an ordered array.
urlEncode(String[], String) - Static method in class net.noderunner.http.HttpUtil
URL encodes a series of parameters.
urlEncode(String[]) - Static method in class net.noderunner.http.HttpUtil
URL encodes a series of parameters, using the Strings are converted to the default platform encoding.
urlEncode(ByteArrayOutputStream, byte[]) - Static method in class net.noderunner.http.HttpUtil
URL encodes a single value, writing its value to an output stream.
urlEncode(Map<String, String>, String) - Static method in class net.noderunner.http.HttpUtil
URL encodes a Map.
urlEncode(Map<String, String>) - Static method in class net.noderunner.http.HttpUtil
URL encodes a Map.

V

valueOf(String) - Static method in enum net.noderunner.http.ContentType.StandardType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.noderunner.http.Method
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.noderunner.http.ContentType.StandardType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.noderunner.http.Method
Returns an array containing the constants of this enum type, in the order they are declared.

W

wrapInputStream(InputStream, MessageHeaders) - Static method in class net.noderunner.http.HttpUtil
Returns a character reader for reading HTTP data.
write(int) - Method in class net.noderunner.http.ChunkedOutputStream
Writes the specified byte to the output stream.
write(byte[]) - Method in class net.noderunner.http.ChunkedOutputStream
Writes the specified byte array.
write(byte[], int, int) - Method in class net.noderunner.http.ChunkedOutputStream
Writes the specified byte array.
write(byte[], int, int) - Method in class net.noderunner.http.LimitedOutputStream
Writes up to len bytes of data to the output stream, possibly less if the write limit is reached.
write(int) - Method in class net.noderunner.http.LimitedOutputStream
Writes a byte of data to the output stream, possibly does nothing if the write limit is reached.
write(Writer) - Method in class net.noderunner.http.MessageHeaders
Writes these headers to output.
writeRequest(ClientRequest) - Method in class net.noderunner.http.BasicHttpClient
 
writeRequest(ClientRequest) - Method in interface net.noderunner.http.HttpClient
Sends the first part of a Request message, consisting of a request line and headers.
writeRequest(ClientRequest) - Method in class net.noderunner.http.RetryHttpClient
Attempts to send an HTTP request, and may retry to send a certain number of times.
writeResponse(ServerResponse) - Method in class net.noderunner.http.BasicHttpServer
 
writeResponse(ServerResponse) - Method in interface net.noderunner.http.HttpServer
Sends response data to the HTTP client.

A B C D E F G H I L M N P R S T U V W

Copyright © 2011. All Rights Reserved.