Skip navigation links
A B C D E F G H I J L M N O P R S T U V W 

A

add(String, String) - Method in class net.freeutils.httpserver.HTTPServer.Headers
Adds a header with the given name and value to the end of this collection of headers.
addAlias(String) - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Adds an alias for this host.
addAll(HTTPServer.Headers) - Method in class net.freeutils.httpserver.HTTPServer.Headers
Adds all given headers to the end of this collection of headers, in their original order.
addContentType(String, String...) - Static method in class net.freeutils.httpserver.HTTPServer
Adds a Content-Type mapping for the given path suffixes.
addContentTypes(InputStream) - Static method in class net.freeutils.httpserver.HTTPServer
Adds Content-Type mappings from a standard mime.types file.
addContext(String, HTTPServer.ContextHandler, String...) - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Adds a context and its corresponding context handler to this server.
addContexts(Object) - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Adds contexts for all methods of the given object that are annotated with the HTTPServer.Context annotation.
addHandler(HTTPServer.ContextHandler, String...) - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost.ContextInfo
Adds (or replaces) a context handler for the given HTTP methods.
addVirtualHost(HTTPServer.VirtualHost) - Method in class net.freeutils.httpserver.HTTPServer
Adds the given virtual host to the server.
aliases - Variable in class net.freeutils.httpserver.HTTPServer.VirtualHost
 
allowGeneratedIndex - Variable in class net.freeutils.httpserver.HTTPServer.VirtualHost
 
available() - Method in class net.freeutils.httpserver.HTTPServer.LimitedInputStream
 
available() - Method in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 

B

base - Variable in class net.freeutils.httpserver.HTTPServer.FileContextHandler
 
baseURL - Variable in class net.freeutils.httpserver.HTTPServer.Request
 
body - Variable in class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
 
body - Variable in class net.freeutils.httpserver.HTTPServer.Request
 
boundary - Variable in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
buf - Variable in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 

C

ChunkedInputStream(InputStream, HTTPServer.Headers) - Constructor for class net.freeutils.httpserver.HTTPServer.ChunkedInputStream
Constructs a ChunkedInputStream with the given underlying stream, and a headers container to which the stream's trailing headers will be added.
ChunkedOutputStream(OutputStream) - Constructor for class net.freeutils.httpserver.HTTPServer.ChunkedOutputStream
Constructs a ChunkedOutputStream with the given underlying stream.
close() - Method in class net.freeutils.httpserver.HTTPServer.ChunkedOutputStream
Writes the trailing chunk if necessary, and closes the underlying stream.
close() - Method in class net.freeutils.httpserver.HTTPServer.LimitedInputStream
 
close() - Method in class net.freeutils.httpserver.HTTPServer.Response
Closes this response and flushes all output.
close() - Method in class net.freeutils.httpserver.HTTPServer.ResponseOutputStream
 
compressibleContentTypes - Static variable in class net.freeutils.httpserver.HTTPServer
The MIME types that can be compressed (prefix/suffix wildcards allowed).
contains(String) - Method in class net.freeutils.httpserver.HTTPServer.Headers
Returns whether there exists a header with the given name.
contentTypes - Static variable in class net.freeutils.httpserver.HTTPServer
A mapping of path suffixes (e.g.
context - Variable in class net.freeutils.httpserver.HTTPServer.Request
 
ContextInfo(String) - Constructor for class net.freeutils.httpserver.HTTPServer.VirtualHost.ContextInfo
Constructs a ContextInfo with the given context path.
contexts - Variable in class net.freeutils.httpserver.HTTPServer.VirtualHost
 
count - Variable in class net.freeutils.httpserver.HTTPServer.Headers
 
createIndex(File, String) - Static method in class net.freeutils.httpserver.HTTPServer
Serves the contents of a directory as an HTML file index.
createServerSocket() - Method in class net.freeutils.httpserver.HTTPServer
Creates the server socket used to accept connections, using the configured ServerSocketFactory and port.
CRLF - Static variable in class net.freeutils.httpserver.HTTPServer
A convenience array containing the carriage-return and line feed chars.

D

DATE_PATTERNS - Static variable in class net.freeutils.httpserver.HTTPServer
The SimpleDateFormat-compatible formats of dates which must be supported.
DAYS - Static variable in class net.freeutils.httpserver.HTTPServer
Date format strings.
detectLocalHostName() - Static method in class net.freeutils.httpserver.HTTPServer
Returns the local host's auto-detected name.
directoryIndex - Variable in class net.freeutils.httpserver.HTTPServer.VirtualHost
 
discardBody - Variable in class net.freeutils.httpserver.HTTPServer.Response
 

E

emptyContext - Variable in class net.freeutils.httpserver.HTTPServer.VirtualHost
 
encodedOut - Variable in class net.freeutils.httpserver.HTTPServer.Response
 
end - Variable in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
escapeHTML(String) - Static method in class net.freeutils.httpserver.HTTPServer
Returns an HTML-escaped version of the given string for safe display within a web page.
executor - Variable in class net.freeutils.httpserver.HTTPServer
 

F

FileContextHandler(File) - Constructor for class net.freeutils.httpserver.HTTPServer.FileContextHandler
 
filename - Variable in class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
 
fill() - Method in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
Fills the buffer with more data from the underlying stream.
findBoundary() - Method in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
Finds the first (potential) boundary within the buffer's remaining data.
formatDate(long) - Static method in class net.freeutils.httpserver.HTTPServer
Formats the given time value as a string in RFC 1123 format.

G

get(String) - Method in class net.freeutils.httpserver.HTTPServer.Headers
Returns the value of the first header with the given name.
getAliases() - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Returns this host's aliases.
getBaseURL() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the base URL (scheme, host and port) of the request resource.
getBody() - Method in class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
Returns the part's body (form field value).
getBody() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the input stream containing the request body.
getBody() - Method in class net.freeutils.httpserver.HTTPServer.Response
Returns an output stream into which the response body can be written.
getBytes(String...) - Static method in class net.freeutils.httpserver.HTTPServer
Converts strings to bytes by casting the chars to bytes.
getConditionalStatus(HTTPServer.Request, long, String) - Static method in class net.freeutils.httpserver.HTTPServer
Calculates the appropriate response status for the given request and its resource's last-modified time and ETag, based on the conditional headers present in the request.
getContentType(String, String) - Static method in class net.freeutils.httpserver.HTTPServer
Returns the content type for the given path, according to its suffix, or the given default content type if none can be determined.
getContext() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the info of the context handling this request.
getContext(String) - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Returns the context handler for the given path.
getDate(String) - Method in class net.freeutils.httpserver.HTTPServer.Headers
Returns the Date value of the header with the given name.
getDirectoryIndex() - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Gets this host's directory index file.
getFilename() - Method in class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
Returns the part's filename (original filename entered in file form field).
getHandlers() - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost.ContextInfo
Returns the map of supported HTTP methods and their corresponding handlers.
getHeaders() - Method in class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
Returns the part's headers.
getHeaders() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the request headers.
getHeaders() - Method in class net.freeutils.httpserver.HTTPServer.Response
Returns the request headers collection.
getMethod() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the request method.
getMethods() - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Returns all HTTP methods explicitly supported by at least one context (this may or may not include the methods with required or built-in support).
getName() - Method in class net.freeutils.httpserver.HTTPServer.Header
Returns this header's name.
getName() - Method in class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
Returns the part's name (form field name).
getName() - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Returns this host's name.
getOutputStream() - Method in class net.freeutils.httpserver.HTTPServer.Response
Returns the underlying output stream to which the response is written.
getParams(String) - Method in class net.freeutils.httpserver.HTTPServer.Headers
Returns a header's parameters.
getParams() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the request parameters, which are parsed both from the query part of the request URI, and from the request body if its content type is "application/x-www-form-urlencoded" (i.e.
getParamsList() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the request parameters, which are parsed both from the query part of the request URI, and from the request body if its content type is "application/x-www-form-urlencoded" (i.e.
getParentPath(String) - Static method in class net.freeutils.httpserver.HTTPServer
Returns the parent of the given path.
getPath() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the path component of the request URI, after URL decoding has been applied (using the UTF-8 charset).
getPath() - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost.ContextInfo
Returns the context path.
getRange(long) - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the absolute (zero-based) content range value read from the Range header.
getSocket() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the underlying socket, which can be used to retrieve connection meta-data.
getString() - Method in class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
Returns the part's body as a string.
getURI() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the request URI.
getValue() - Method in class net.freeutils.httpserver.HTTPServer.Header
Returns this header's value.
getVersion() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the request version string.
getVirtualHost(String) - Method in class net.freeutils.httpserver.HTTPServer
Returns the virtual host with the given name.
getVirtualHost() - Method in class net.freeutils.httpserver.HTTPServer.Request
Returns the virtual host corresponding to the requested host name, or the default host if none exists.
getVirtualHosts() - Method in class net.freeutils.httpserver.HTTPServer
Returns all virtual hosts.
GMT - Static variable in class net.freeutils.httpserver.HTTPServer
A GMT (UTC) timezone instance.

H

handleConnection(InputStream, OutputStream, Socket) - Method in class net.freeutils.httpserver.HTTPServer
Handles communications for a single connection over the given streams.
handleMethod(HTTPServer.Request, HTTPServer.Response) - Method in class net.freeutils.httpserver.HTTPServer
Handles a transaction according to the request method.
handlers - Variable in class net.freeutils.httpserver.HTTPServer.VirtualHost.ContextInfo
 
handleTrace(HTTPServer.Request, HTTPServer.Response) - Method in class net.freeutils.httpserver.HTTPServer
Handles a TRACE method request.
handleTransaction(HTTPServer.Request, HTTPServer.Response) - Method in class net.freeutils.httpserver.HTTPServer
Handles a single transaction on a connection.
hasNext() - Method in class net.freeutils.httpserver.HTTPServer.MultipartIterator
 
head - Variable in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
Header(String, String) - Constructor for class net.freeutils.httpserver.HTTPServer.Header
Constructs a header with the given name and value.
headers - Variable in class net.freeutils.httpserver.HTTPServer.ChunkedInputStream
 
Headers() - Constructor for class net.freeutils.httpserver.HTTPServer.Headers
 
headers - Variable in class net.freeutils.httpserver.HTTPServer.Headers
 
headers - Variable in class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
 
headers - Variable in class net.freeutils.httpserver.HTTPServer.Request
 
headers - Variable in class net.freeutils.httpserver.HTTPServer.Response
 
headersSent() - Method in class net.freeutils.httpserver.HTTPServer.Response
Returns whether the response headers were already sent.
host - Variable in class net.freeutils.httpserver.HTTPServer.Request
 
hosts - Variable in class net.freeutils.httpserver.HTTPServer
 
HTTPServer - Class in net.freeutils.httpserver
The HTTPServer class implements a light-weight HTTP server.
HTTPServer(int) - Constructor for class net.freeutils.httpserver.HTTPServer
Constructs an HTTPServer which can accept connections on the given port.
HTTPServer() - Constructor for class net.freeutils.httpserver.HTTPServer
Constructs an HTTPServer which can accept connections on the default HTTP port 80.
HTTPServer.ChunkedInputStream - Class in net.freeutils.httpserver
The ChunkedInputStream decodes an InputStream whose data has the "chunked" transfer encoding applied to it, providing the underlying data.
HTTPServer.ChunkedOutputStream - Class in net.freeutils.httpserver
The ChunkedOutputStream encodes an OutputStream with the "chunked" transfer encoding.
HTTPServer.Context - Annotation Type in net.freeutils.httpserver
The Context annotation decorates methods which are mapped to a context (path) within the server, and provide its contents.
HTTPServer.ContextHandler - Interface in net.freeutils.httpserver
A ContextHandler serves the content of resources within a context.
HTTPServer.FileContextHandler - Class in net.freeutils.httpserver
The FileContextHandler services a context by mapping it to a file or folder (recursively) on disk.
HTTPServer.Header - Class in net.freeutils.httpserver
The Header class encapsulates a single HTTP header.
HTTPServer.Headers - Class in net.freeutils.httpserver
The Headers class encapsulates a collection of HTTP headers.
HTTPServer.LimitedInputStream - Class in net.freeutils.httpserver
The LimitedInputStream provides access to a limited number of consecutive bytes from the underlying InputStream, starting at its current position.
HTTPServer.MethodContextHandler - Class in net.freeutils.httpserver
The MethodContextHandler services a context by invoking a handler method on a specified object.
HTTPServer.MultipartInputStream - Class in net.freeutils.httpserver
The MultipartInputStream decodes an InputStream whose data has a "multipart/*" content type (see RFC 2046), providing the underlying data of its various parts.
HTTPServer.MultipartIterator - Class in net.freeutils.httpserver
The MultipartIterator iterates over the parts of a multipart/form-data request.
HTTPServer.MultipartIterator.Part - Class in net.freeutils.httpserver
The Part class encapsulates a single part of the multipart.
HTTPServer.Request - Class in net.freeutils.httpserver
The Request class encapsulates a single HTTP request.
HTTPServer.Response - Class in net.freeutils.httpserver
The Response class encapsulates a single HTTP response.
HTTPServer.ResponseOutputStream - Class in net.freeutils.httpserver
The ResponseOutputStream encompasses a single response over a connection, and does not close the underlying stream so that it can be used by subsequent responses.
HTTPServer.SocketHandlerThread - Class in net.freeutils.httpserver
The SocketHandlerThread handles accepted sockets.
HTTPServer.VirtualHost - Class in net.freeutils.httpserver
The VirtualHost class represents a virtual host in the server.
HTTPServer.VirtualHost.ContextInfo - Class in net.freeutils.httpserver
The ContextInfo class holds a single context's information.

I

in - Variable in class net.freeutils.httpserver.HTTPServer.MultipartIterator
 
initChunk() - Method in class net.freeutils.httpserver.HTTPServer.ChunkedInputStream
Initializes the next chunk.
initChunk(long) - Method in class net.freeutils.httpserver.HTTPServer.ChunkedOutputStream
Initializes a new chunk with the given size.
initialized - Variable in class net.freeutils.httpserver.HTTPServer.ChunkedInputStream
 
isAllowGeneratedIndex() - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Returns whether auto-generated indices are allowed.
isCompressible(String) - Static method in class net.freeutils.httpserver.HTTPServer
Checks whether data of the given content type (MIME type) is compressible.
iterator() - Method in class net.freeutils.httpserver.HTTPServer.Headers
Returns an iterator over the headers, in their insertion order.

J

join(String, Iterable<T>) - Static method in class net.freeutils.httpserver.HTTPServer
Returns a string constructed by joining the string representations of the iterated objects (in order), with the delimiter inserted between them.

L

len - Variable in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
limit - Variable in class net.freeutils.httpserver.HTTPServer.LimitedInputStream
 
LimitedInputStream(InputStream, long, boolean) - Constructor for class net.freeutils.httpserver.HTTPServer.LimitedInputStream
Constructs a LimitedInputStream with the given underlying input stream and limit.

M

m - Variable in class net.freeutils.httpserver.HTTPServer.MethodContextHandler
 
main(String[]) - Static method in class net.freeutils.httpserver.HTTPServer
Starts a stand-alone HTTP server, serving files from disk.
markSupported() - Method in class net.freeutils.httpserver.HTTPServer.LimitedInputStream
 
markSupported() - Method in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
match(boolean, String[], String) - Static method in class net.freeutils.httpserver.HTTPServer
Matches the given ETag value against the given ETags.
method - Variable in class net.freeutils.httpserver.HTTPServer.Request
 
MethodContextHandler(Method, Object) - Constructor for class net.freeutils.httpserver.HTTPServer.MethodContextHandler
 
methods - Variable in class net.freeutils.httpserver.HTTPServer.VirtualHost
 
MONTHS - Static variable in class net.freeutils.httpserver.HTTPServer
Date format strings.
MultipartInputStream(InputStream, byte[]) - Constructor for class net.freeutils.httpserver.HTTPServer.MultipartInputStream
Constructs a MultipartInputStream with the given underlying stream.
MultipartIterator(HTTPServer.Request) - Constructor for class net.freeutils.httpserver.HTTPServer.MultipartIterator
Creates a new MultipartIterator from the given request.

N

name - Variable in class net.freeutils.httpserver.HTTPServer.Header
 
name - Variable in class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
 
name - Variable in class net.freeutils.httpserver.HTTPServer.VirtualHost
 
net.freeutils.httpserver - package net.freeutils.httpserver
 
next - Variable in class net.freeutils.httpserver.HTTPServer.MultipartIterator
 
next() - Method in class net.freeutils.httpserver.HTTPServer.MultipartIterator
 
nextPart() - Method in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
Advances the stream position to the beginning of the next part.

O

obj - Variable in class net.freeutils.httpserver.HTTPServer.MethodContextHandler
 
out - Variable in class net.freeutils.httpserver.HTTPServer.Response
 

P

params - Variable in class net.freeutils.httpserver.HTTPServer.Request
 
parseChunkSize(String) - Static method in class net.freeutils.httpserver.HTTPServer.ChunkedInputStream
Parses a chunk-size line.
parseDate(String) - Static method in class net.freeutils.httpserver.HTTPServer
Parses a date string in one of the supported HTTPServer.DATE_PATTERNS.
parseParamsList(String) - Static method in class net.freeutils.httpserver.HTTPServer
Parses name-value pair parameters from the given "x-www-form-urlencoded" MIME-type string.
parseRange(String, long) - Static method in class net.freeutils.httpserver.HTTPServer
Returns the absolute (zero-based) content range value specified by the given range string.
parseULong(String, int) - Static method in class net.freeutils.httpserver.HTTPServer
Parses an unsigned long value.
Part() - Constructor for class net.freeutils.httpserver.HTTPServer.MultipartIterator.Part
 
path - Variable in class net.freeutils.httpserver.HTTPServer.VirtualHost.ContextInfo
 
port - Variable in class net.freeutils.httpserver.HTTPServer
 
prematureEndException - Variable in class net.freeutils.httpserver.HTTPServer.LimitedInputStream
 
preprocessTransaction(HTTPServer.Request, HTTPServer.Response) - Method in class net.freeutils.httpserver.HTTPServer
Preprocesses a transaction, performing various validation checks and required special header handling, possibly returning an appropriate response.

R

read() - Method in class net.freeutils.httpserver.HTTPServer.ChunkedInputStream
 
read(byte[], int, int) - Method in class net.freeutils.httpserver.HTTPServer.ChunkedInputStream
 
read() - Method in class net.freeutils.httpserver.HTTPServer.LimitedInputStream
 
read(byte[], int, int) - Method in class net.freeutils.httpserver.HTTPServer.LimitedInputStream
 
read() - Method in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
read(byte[], int, int) - Method in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
readHeaders(InputStream) - Static method in class net.freeutils.httpserver.HTTPServer
Reads headers from the given stream.
readLine(InputStream) - Static method in class net.freeutils.httpserver.HTTPServer
Reads the ISO-8859-1 encoded string starting at the current stream position and ending at the first occurrence of the LF character.
readRequestLine(InputStream) - Method in class net.freeutils.httpserver.HTTPServer.Request
Reads the request line, parsing the method, URI and version string.
readToken(InputStream, int, String, int) - Static method in class net.freeutils.httpserver.HTTPServer
Reads the token starting at the current stream position and ending at the first occurrence of the given delimiter byte, in the given encoding.
redirect(String, boolean) - Method in class net.freeutils.httpserver.HTTPServer.Response
Sends a 301 or 302 response, redirecting the client to the given URL.
remove(String) - Method in class net.freeutils.httpserver.HTTPServer.Headers
Removes all headers with the given name (if any exist).
remove() - Method in class net.freeutils.httpserver.HTTPServer.MultipartIterator
 
replace(String, String) - Method in class net.freeutils.httpserver.HTTPServer.Headers
Adds a header with the given name and value, replacing the first existing header with the same name.
req - Variable in class net.freeutils.httpserver.HTTPServer.Response
 
Request(InputStream, Socket) - Constructor for class net.freeutils.httpserver.HTTPServer.Request
Constructs a Request from the data in the given input stream.
Response(OutputStream) - Constructor for class net.freeutils.httpserver.HTTPServer.Response
Constructs a Response whose output is written to the given stream.
ResponseOutputStream(OutputStream) - Constructor for class net.freeutils.httpserver.HTTPServer.ResponseOutputStream
Constructs a ResponseOutputStream.
run() - Method in class net.freeutils.httpserver.HTTPServer.SocketHandlerThread
 

S

secure - Variable in class net.freeutils.httpserver.HTTPServer
 
send(int, String) - Method in class net.freeutils.httpserver.HTTPServer.Response
Sends the full response with the given status, and the given string as the body.
sendBody(InputStream, long, long[]) - Method in class net.freeutils.httpserver.HTTPServer.Response
Sends the response body.
sendError(int, String) - Method in class net.freeutils.httpserver.HTTPServer.Response
Sends an error response with the given status and detailed message.
sendError(int) - Method in class net.freeutils.httpserver.HTTPServer.Response
Sends an error response with the given status and default body.
sendHeaders(int) - Method in class net.freeutils.httpserver.HTTPServer.Response
Sends the response headers with the given response status.
sendHeaders(int, long, long, String, String, long[]) - Method in class net.freeutils.httpserver.HTTPServer.Response
Sends the response headers, including the given response status and description, and all response headers.
serv - Variable in class net.freeutils.httpserver.HTTPServer
 
serve(HTTPServer.Request, HTTPServer.Response) - Method in interface net.freeutils.httpserver.HTTPServer.ContextHandler
Serves the given request using the given response.
serve(HTTPServer.Request, HTTPServer.Response) - Method in class net.freeutils.httpserver.HTTPServer.FileContextHandler
 
serve(HTTPServer.Request, HTTPServer.Response) - Method in class net.freeutils.httpserver.HTTPServer.MethodContextHandler
 
serve(HTTPServer.Request, HTTPServer.Response) - Method in class net.freeutils.httpserver.HTTPServer
Serves the content for a request by invoking the context handler for the requested context (path) and HTTP method.
serveFile(File, String, HTTPServer.Request, HTTPServer.Response) - Static method in class net.freeutils.httpserver.HTTPServer
Serves a context's contents from a file based resource.
serveFileContent(File, HTTPServer.Request, HTTPServer.Response) - Static method in class net.freeutils.httpserver.HTTPServer
Serves the contents of a file, with its corresponding content type, last modification time, etc.
serverSocketFactory - Variable in class net.freeutils.httpserver.HTTPServer
 
setAllowGeneratedIndex(boolean) - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Sets whether auto-generated indices are allowed.
setClientCapabilities(HTTPServer.Request) - Method in class net.freeutils.httpserver.HTTPServer.Response
Sets the request which is used in determining the capabilities supported by the client (e.g.
setDirectoryIndex(String) - Method in class net.freeutils.httpserver.HTTPServer.VirtualHost
Sets the directory index file.
setDiscardBody(boolean) - Method in class net.freeutils.httpserver.HTTPServer.Response
Sets whether this response's body is discarded or sent.
setExecutor(Executor) - Method in class net.freeutils.httpserver.HTTPServer
Sets the executor used in servicing HTTP connections.
setPath(String) - Method in class net.freeutils.httpserver.HTTPServer.Request
Sets the path component of the request URI.
setPort(int) - Method in class net.freeutils.httpserver.HTTPServer
Sets the port on which this server will accept connections.
setServerSocketFactory(ServerSocketFactory) - Method in class net.freeutils.httpserver.HTTPServer
Sets the factory used to create the server socket.
setSocketTimeout(int) - Method in class net.freeutils.httpserver.HTTPServer
Sets the socket timeout for established connections.
size() - Method in class net.freeutils.httpserver.HTTPServer.Headers
Returns the number of added headers.
skip(long) - Method in class net.freeutils.httpserver.HTTPServer.LimitedInputStream
 
skip(long) - Method in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
sock - Variable in class net.freeutils.httpserver.HTTPServer.Request
 
SocketHandlerThread() - Constructor for class net.freeutils.httpserver.HTTPServer.SocketHandlerThread
 
socketTimeout - Variable in class net.freeutils.httpserver.HTTPServer
 
split(String, String, int) - Static method in class net.freeutils.httpserver.HTTPServer
Splits the given string into its constituent non-empty trimmed elements, which are delimited by any of the given delimiter characters.
splitElements(String, boolean) - Static method in class net.freeutils.httpserver.HTTPServer
Splits the given element list string (comma-separated header value) into its constituent non-empty trimmed elements.
start() - Method in class net.freeutils.httpserver.HTTPServer
Starts this server.
state - Variable in class net.freeutils.httpserver.HTTPServer.ChunkedOutputStream
 
state - Variable in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
state - Variable in class net.freeutils.httpserver.HTTPServer.Response
 
statuses - Static variable in class net.freeutils.httpserver.HTTPServer
The HTTP status description strings.
stop() - Method in class net.freeutils.httpserver.HTTPServer
Stops this server.

T

tail - Variable in class net.freeutils.httpserver.HTTPServer.MultipartInputStream
 
toMap(Collection<? extends Object[]>) - Static method in class net.freeutils.httpserver.HTTPServer
Converts a collection of pairs of objects (arrays of size two, each representing a key and corresponding value) into a Map.
toSizeApproxString(long) - Static method in class net.freeutils.httpserver.HTTPServer
Returns a human-friendly string approximating the given data size, e.g.
transfer(InputStream, OutputStream, long) - Static method in class net.freeutils.httpserver.HTTPServer
Transfers data from an input stream to an output stream.
trimDuplicates(String, char) - Static method in class net.freeutils.httpserver.HTTPServer
Trims duplicate consecutive occurrences of the given character within the given string, replacing them with a single instance of the character.
trimLeft(String, char) - Static method in class net.freeutils.httpserver.HTTPServer
Returns the given string with all occurrences of the given character removed from its left side.
trimRight(String, char) - Static method in class net.freeutils.httpserver.HTTPServer
Returns the given string with all occurrences of the given character removed from its right side.

U

uri - Variable in class net.freeutils.httpserver.HTTPServer.Request
 

V

value - Variable in class net.freeutils.httpserver.HTTPServer.Header
 
version - Variable in class net.freeutils.httpserver.HTTPServer.Request
 
VirtualHost(String) - Constructor for class net.freeutils.httpserver.HTTPServer.VirtualHost
Constructs a VirtualHost with the given name.

W

write(int) - Method in class net.freeutils.httpserver.HTTPServer.ChunkedOutputStream
Writes a chunk containing the given byte.
write(byte[], int, int) - Method in class net.freeutils.httpserver.HTTPServer.ChunkedOutputStream
Writes a chunk containing the given bytes.
write(byte[], int, int) - Method in class net.freeutils.httpserver.HTTPServer.ResponseOutputStream
 
writeTo(OutputStream) - Method in class net.freeutils.httpserver.HTTPServer.Headers
Writes the headers to the given stream (including trailing CRLF).
writeTrailingChunk(HTTPServer.Headers) - Method in class net.freeutils.httpserver.HTTPServer.ChunkedOutputStream
Writes the trailing chunk which marks the end of the stream.
A B C D E F G H I J L M N O P R S T U V W 
Skip navigation links

Copyright © 2021 freeutils.net. All rights reserved.