Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
D
E
G
H
I
M
O
S
D
DEFAULT_MAX_CONNECTIONS
- Static variable in class org.savarese.barehttp.
HTTPServer
The default maximum number of concurrent client connections (10) that will be accepted if not specified.
DEFAULT_PORT
- Static variable in class org.savarese.barehttp.
HTTPServer
The default port number (8080) to bind to if not specified.
E
execute()
- Method in class org.savarese.barehttp.
HTTPSession
Executes the HTTP conversation and closes the session after satisfying the first request.
G
getBindAddress()
- Method in class org.savarese.barehttp.
HTTPServer
Returns the network interface address the server will bind to.
getBoundAddress()
- Method in class org.savarese.barehttp.
HTTPServer
If the server is running, returns the address currently bound to.
getBoundPort()
- Method in class org.savarese.barehttp.
HTTPServer
If the server is running, returns the port number currently bound to.
getConnectionCount()
- Method in class org.savarese.barehttp.
HTTPServer
Returns the number of client connections currently established.
getDocumentRoot()
- Method in class org.savarese.barehttp.
HTTPServer
Returns the document root directory pathname.
getMaxConnections()
- Method in class org.savarese.barehttp.
HTTPServer
Returns the maximum number of concurrent client connections that will be accepted.
getPort()
- Method in class org.savarese.barehttp.
HTTPServer
The port number the server will bind to.
H
HTTPServer
- Class in
org.savarese.barehttp
Implements a server that listens for incoming client connections and services each with
HTTPSession
instances.
HTTPServer(String)
- Constructor for class org.savarese.barehttp.
HTTPServer
Same as HTTPServer(documentRoot, DEFAULT_PORT, DEFAULT_MAX_CONNECTIONS);
HTTPServer(String, int, int)
- Constructor for class org.savarese.barehttp.
HTTPServer
Creates an HTTPServer instance.
HTTPSession
- Class in
org.savarese.barehttp
An HTTPSession executes an HTTP conversation via an InputStream and OutputSream.
HTTPSession(String, InputStream, OutputStream)
- Constructor for class org.savarese.barehttp.
HTTPSession
Creates an HTTPSession rooted at the specified document directory and communicating via the specified streams.
I
isRunning()
- Method in class org.savarese.barehttp.
HTTPServer
Returns true if the server is in a running state, false if not.
M
Main
- Class in
org.savarese.barehttp
The BareHTTP server, a sample program that starts an
HTTPServer
instance.
main(String[])
- Static method in class org.savarese.barehttp.
Main
Starts an
HTTPServer
instance on a specified port allowing
HTTPServer.DEFAULT_MAX_CONNECTIONS
.
O
org.savarese.barehttp
- package org.savarese.barehttp
The BareHTTP server and library classes.
S
setBindAddress(InetAddress)
- Method in class org.savarese.barehttp.
HTTPServer
Sets the network interface address the server should bind to.
setMaxConnections(int)
- Method in class org.savarese.barehttp.
HTTPServer
Sets the maximum number of concurrent client connections the server should accept.
setPort(int)
- Method in class org.savarese.barehttp.
HTTPServer
Sets the port number the server should bind to.
start()
- Method in class org.savarese.barehttp.
HTTPServer
Starts listening for incoming connectons in an asynchronously initiated thread.
stop(long, TimeUnit)
- Method in class org.savarese.barehttp.
HTTPServer
Schedules termination of the server, closes the server socket, and waits for the specified amount of time or until the server is terminated before returning.
D
E
G
H
I
M
O
S
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2001,2006,2010,2012 Daniel F. Savarese. All Rights Reserved.