Index
All Classes and Interfaces|All Packages
A
- Accessing Globally - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
- Accessing on Host Machine - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
- Accessing on Local Network - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
- Accessing the Server - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
- addDirectory(File) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds a directory to the handler using the directory name.
- addDirectory(File, FileOptions) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds a directory to the handler using the directory name from a set of file options.
- addDirectory(File, String) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds a directory to the handler with a set name.
- addDirectory(File, String, FileOptions) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds a directory to the handler using the directory name from a set of file options.
- addFile(File) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds a file to the handler.
- addFile(File, FileOptions) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds a file to the handler from a set of
FileOptions
s. - addFile(File, String) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds a file to the handler with a set name.
- addFile(File, String, FileOptions) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds a file to the handler with a set name from a set of
FileOptions
. - addFiles(File[]) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds multiple files to the handler.
- addFiles(File[], FileOptions) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Adds multiple files to the handler from a set of
FileOptions
. - Adding Files - Search tag in class dev.katsute.simplehttpserver.handler.file.FileHandler
- Section
- Adding Pages - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
- asFile() - Method in class dev.katsute.simplehttpserver.Record
-
Casts the record to a
FileRecord
. - assignSessionID(HttpExchange) - Method in class dev.katsute.simplehttpserver.HttpSessionHandler
-
Assigns a unique session ID to an exchange.
B
- bind(int) - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Binds the server to a port.
- bind(int) - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Binds the server to a port.
- bind(int, int) - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Binds the server to a port.
- bind(int, int) - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Binds the server to a port.
- Binding to a Port - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
- build() - Method in class dev.katsute.simplehttpserver.handler.file.FileOptions.Builder
-
Returns the builder as file options.
- Builder() - Constructor for class dev.katsute.simplehttpserver.handler.file.FileOptions.Builder
C
- cache - Variable in class dev.katsute.simplehttpserver.handler.file.FileOptions
-
How long to cache files for.
- Cache - Search tag in class dev.katsute.simplehttpserver.handler.file.FileHandler
- Section
- CACHE - Enum constant in enum class dev.katsute.simplehttpserver.handler.file.FileOptions.FileLoadingOption
-
File bytes will be read when requested, and cached for
FileOptions.cache
milliseconds. - canIgnoreConnectionLimit(HttpSession, SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerSessionThrottler
-
If true, a session does not contribute to the total server connections and can bypass the maximum limit.
- canIgnoreConnectionLimit(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerExchangeThrottler
-
If true, an exchange does not contribute to the total server connections and can bypass the maximum limit.
- context - Variable in class dev.katsute.simplehttpserver.handler.file.FileOptions
-
The context that files should be served at relative to the file handler's context.
- Context - Search tag in class dev.katsute.simplehttpserver.handler.file.FileHandler
- Section
- Cookies - Search tag in class dev.katsute.simplehttpserver.SimpleHttpExchange
- Section
- create() - Static method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Creates an unbounded http server.
- create() - Static method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Creates an unbounded https server.
- create(int) - Static method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Creates an http server bounded to a port.
- create(int) - Static method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Creates an https server bounded to a port.
- create(int, int) - Static method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Creates an http server bounded to a port.
- create(int, int) - Static method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Creates an https server bounded to a port.
- Creating a SimpleHttpServer - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
D
- dev.katsute.simplehttpserver - package dev.katsute.simplehttpserver
-
Contains core classes for using
SimpleHttpServer
. - dev.katsute.simplehttpserver.handler - package dev.katsute.simplehttpserver.handler
-
Contains handlers that can be use with a
HttpServer
or aSimpleHttpServer
. - dev.katsute.simplehttpserver.handler.file - package dev.katsute.simplehttpserver.handler.file
-
Contains support classes for the
FileHandler
. - dev.katsute.simplehttpserver.handler.throttler - package dev.katsute.simplehttpserver.handler.throttler
-
Contains throttlers for the
ThrottledHandler
.
E
- Exchange - Search tag in module SimpleHttpServer
- Section
- ExchangeThrottler - Class in dev.katsute.simplehttpserver.handler.throttler
-
A throttler that limits the amount of simultaneous connections based on the exchange.
- ExchangeThrottler() - Constructor for class dev.katsute.simplehttpserver.handler.throttler.ExchangeThrottler
-
Creates a throttler.
F
- FileAdapter - Search tag in class dev.katsute.simplehttpserver.handler.file.FileHandler
- Section
- FileAdapter - Interface in dev.katsute.simplehttpserver.handler.file
-
When using a
FileHandler
, determines at what name a file should be located at, and what content to return to the client. - FileHandler - Class in dev.katsute.simplehttpserver.handler.file
-
A file handler can be used to serve single or multiple files on a server with optional pre/post processing using
FileAdapter
s. - FileHandler() - Constructor for class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Creates a file handler.
- FileHandler(FileAdapter) - Constructor for class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Creates a file handler, adapting the added files with an
FileAdapter
. - FileOptions - Search tag in class dev.katsute.simplehttpserver.handler.file.FileHandler
- Section
- FileOptions - Class in dev.katsute.simplehttpserver.handler.file
-
Represents a set of options for an added file.
- FileOptions() - Constructor for class dev.katsute.simplehttpserver.handler.file.FileOptions
-
Creates a new set of file options.
- FileOptions.Builder - Class in dev.katsute.simplehttpserver.handler.file
-
Builder used to create
FileOptions
. - FileOptions.FileLoadingOption - Enum Class in dev.katsute.simplehttpserver.handler.file
-
How to load files added to the file handler.
- FileRecord - Class in dev.katsute.simplehttpserver
-
Represents a file in a multipart/form-data request.
G
- getBytes() - Method in class dev.katsute.simplehttpserver.FileRecord
-
Returns the file content as a byte array
- getBytes(File, byte[]) - Method in interface dev.katsute.simplehttpserver.handler.file.FileAdapter
-
Returns the bytes that the file should return.
- getContentType() - Method in class dev.katsute.simplehttpserver.FileRecord
-
Returns the file content type.
- getContextHandler(HttpContext) - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Returns the handler for a given context.
- getContextHandler(HttpContext) - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Returns the handler for a given context.
- getContextHandler(String) - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Returns the handler for a given context.
- getContextHandler(String) - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Returns the handler for a given context.
- getContexts() - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Returns a map of all the contexts registered to the server.
- getContexts() - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Returns a map of all the contexts registered to the server.
- getCookie(String) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns the value of a given cookie for a client.
- getCookies() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns a map of all the cookies for a client.
- getCreationTime() - Method in class dev.katsute.simplehttpserver.HttpSession
-
Returns when the session was created as milliseconds since epoch.
- getEntries() - Method in class dev.katsute.simplehttpserver.MultipartFormData
-
Returns all the records in the response body.
- getEntry(String) - Method in class dev.katsute.simplehttpserver.MultipartFormData
-
Returns the record for a particular key.
- getFileName() - Method in class dev.katsute.simplehttpserver.FileRecord
-
Returns the file name.
- getGetMap() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns GET query as a map of keys and values.
- getHeader(String) - Method in class dev.katsute.simplehttpserver.Record
-
Returns a specified header.
- getHeaders() - Method in class dev.katsute.simplehttpserver.Record
-
Returns all the headers.
- getHttpExchange() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns the underlying http exchange.
- getHttpServer() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns the http server associated with an exchange.
- getHttpServer() - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Returns the underlying http server.
- getHttpsServer() - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Returns the underlying http server.
- getLastAccessed() - Method in class dev.katsute.simplehttpserver.HttpSession
-
Returns when the session was last accessed as milliseconds since epoch.
- getMaxConnections(HttpSession, SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerSessionThrottler
-
Returns the maximum number of connections allowed for a session.
- getMaxConnections(HttpSession, SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.SessionThrottler
-
Returns the maximum number of connections allowed for a session.
- getMaxConnections(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.ExchangeThrottler
- getMaxConnections(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerExchangeThrottler
- getMaxConnections(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerSessionThrottler
- getMaxConnections(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.SessionThrottler
- getMaxServerConnections() - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerExchangeThrottler
-
Returns the maximum amount of server connections that is allowed.
- getMaxServerConnections() - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerSessionThrottler
-
Returns the maximum amount of server connections that is allowed.
- getMultipartFormData() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
For content type
multipart/form-data
, returns POST body as aMultipartFormData
object. - getName() - Method in class dev.katsute.simplehttpserver.Record
-
Returns the form input name.
- getName() - Method in class dev.katsute.simplehttpserver.Record.Header
-
Returns the header name.
- getName(File) - Method in interface dev.katsute.simplehttpserver.handler.file.FileAdapter
-
Returns the name that the file should be accessible at.
- getParameter(String) - Method in class dev.katsute.simplehttpserver.Record.Header
-
Returns the value for a header parameter.
- getParameters() - Method in class dev.katsute.simplehttpserver.Record.Header
-
Returns a map of all parameters for a header.
- getPostMap() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns the POST body as a map of keys and values.
- getRandomContext() - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Returns a random context that doesn't yet exist on the server.
- getRandomContext() - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Returns a random context that doesn't yet exist on the server.
- getRandomContext(String) - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Returns a random context prefixed by a set context.
- getRandomContext(String) - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Returns a random context prefixed by a set context.
- getRawGet() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns the raw string representation of a GET query.
- getRawPost() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns the raw string representation of a POST body.
- GET Request - Search tag in class dev.katsute.simplehttpserver.SimpleHttpExchange
- Section
- getSession(HttpExchange) - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Returns the session for a given exchange.
- getSession(HttpExchange) - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Returns the session for a given exchange.
- getSession(HttpExchange) - Method in class dev.katsute.simplehttpserver.HttpSessionHandler
-
Returns the session associated with a particular exchange.
- getSessionHandler() - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
- getSessionHandler() - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
- getSessionID() - Method in class dev.katsute.simplehttpserver.HttpSession
-
Returns the session ID.
- getValue() - Method in class dev.katsute.simplehttpserver.Record
-
Returns the form value.
- getValue() - Method in class dev.katsute.simplehttpserver.Record.Header
-
Returns the header value.
H
- handle(HttpExchange) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
- handle(HttpExchange) - Method in class dev.katsute.simplehttpserver.handler.PredicateHandler
- handle(HttpExchange) - Method in class dev.katsute.simplehttpserver.handler.RedirectHandler
- handle(HttpExchange) - Method in class dev.katsute.simplehttpserver.handler.SSEHandler
- handle(HttpExchange) - Method in class dev.katsute.simplehttpserver.handler.TemporaryHandler
- handle(HttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.ThrottledHandler
- handle(HttpExchange) - Method in class dev.katsute.simplehttpserver.handler.TimeoutHandler
- handle(HttpExchange) - Method in interface dev.katsute.simplehttpserver.SimpleHttpHandler
-
Deprecated.
- handle(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
- handle(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.PredicateHandler
- handle(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.SSEHandler
- handle(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.throttler.ThrottledHandler
- handle(SimpleHttpExchange) - Method in class dev.katsute.simplehttpserver.handler.TimeoutHandler
- handle(SimpleHttpExchange) - Method in interface dev.katsute.simplehttpserver.SimpleHttpHandler
-
Handles an exchange.
- handle(SimpleHttpExchange, File, byte[]) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Handles a file exchange.
- Handlers - Search tag in module SimpleHttpServer
- Section
- hasGet() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns if there is a GET query.
- hasPost() - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Returns if there is a POST body.
- HttpSession - Class in dev.katsute.simplehttpserver
-
A session keeps track of a single client across multiple exchanges.
- HttpSessionHandler - Class in dev.katsute.simplehttpserver
-
The session handler is used to assign sessions to exchanges.
- HttpSessionHandler() - Constructor for class dev.katsute.simplehttpserver.HttpSessionHandler
-
Creates a session handler using the cookie
__session-id
. - HttpSessionHandler(String) - Constructor for class dev.katsute.simplehttpserver.HttpSessionHandler
-
Creates a session handler using a specified cookie.
I
- isFile() - Method in class dev.katsute.simplehttpserver.Record
-
Returns if the record is a
FileRecord
.
L
- LIVE - Enum constant in enum class dev.katsute.simplehttpserver.handler.file.FileOptions.FileLoadingOption
-
File bytes will be read when requested.
- loading - Variable in class dev.katsute.simplehttpserver.handler.file.FileOptions
-
The file loading option.
- Loading Options - Search tag in class dev.katsute.simplehttpserver.handler.file.FileHandler
- Section
M
- MODIFY - Enum constant in enum class dev.katsute.simplehttpserver.handler.file.FileOptions.FileLoadingOption
-
File bytes will be read when file is added and any time it is modified.
- multipart/form-data - Search tag in class dev.katsute.simplehttpserver.SimpleHttpExchange
- Section
- MultipartFormData - Class in dev.katsute.simplehttpserver
-
Representation of a multipart/form-data body.
- Multi-threaded Server - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
P
- POST Request - Search tag in class dev.katsute.simplehttpserver.SimpleHttpExchange
- Section
- PredicateHandler - Class in dev.katsute.simplehttpserver.handler
-
Handler that process requests based on the result of a predicate.
- PredicateHandler(Predicate<SimpleHttpExchange>, HttpHandler, HttpHandler) - Constructor for class dev.katsute.simplehttpserver.handler.PredicateHandler
-
Creates a predicate handler.
- PRELOAD - Enum constant in enum class dev.katsute.simplehttpserver.handler.file.FileOptions.FileLoadingOption
-
File bytes will be read when file is added.
- push(String) - Method in class dev.katsute.simplehttpserver.handler.SSEHandler
-
Pushes an event to the stream.
- push(String, int, String) - Method in class dev.katsute.simplehttpserver.handler.SSEHandler
-
Pushes an event to the stream
R
- Record - Class in dev.katsute.simplehttpserver
-
Represents a record in a multipart/form-data request.
- Record.Header - Class in dev.katsute.simplehttpserver
-
Represents a header in a multipart/form-data record.
- RedirectHandler - Class in dev.katsute.simplehttpserver.handler
-
Redirects a request to a different URL.
- RedirectHandler(String) - Constructor for class dev.katsute.simplehttpserver.handler.RedirectHandler
-
Creates a redirect to a URL.
- removeDirectory(File) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Removes a directory from the handler.
- removeDirectory(File, FileOptions) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Removes a directory from the handler with file options.
- removeDirectory(String) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Removes a directory from the handler at a specified context.
- removeFile(File) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Removes a file from the handler.
- removeFile(File, FileOptions) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Removes a file from the handler with file options.
- removeFile(String) - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
-
Removes a file from the handler at the specified context.
- Requests - Search tag in class dev.katsute.simplehttpserver.SimpleHttpExchange
- Section
- Requests are still not being processed in parallel - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
- Response - Search tag in class dev.katsute.simplehttpserver.SimpleHttpExchange
- Section
- RootHandler - Class in dev.katsute.simplehttpserver.handler
-
By default, exchanges will look for the closest matching context for their handler, this consequently means that the root index
/
would catch any requests without a handler instead of returning a code 404. - RootHandler(HttpHandler, HttpHandler) - Constructor for class dev.katsute.simplehttpserver.handler.RootHandler
-
Creates a root handler.
S
- send(byte[]) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a byte array to the client.
- send(byte[], boolean) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a byte array to the client that can be gziped.
- send(byte[], int) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a byte array to the client with a response code.
- send(byte[], int, boolean) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a byte array to the client with a response code that can be gziped.
- send(int) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a response code to the client.
- send(File) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a file to the client.
- send(File, boolean) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a byte array to the client that can be gziped.
- send(File, int) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a byte array to the client with a response code.
- send(File, int, boolean) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a file to the client with a response code that can be gziped.
- send(String) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a string to the client.
- send(String, boolean) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a string to the client that can be gziped.
- send(String, int) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a string to the client with a response code
- send(String, int, boolean) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sends a string to the client with a response code that can be gziped.
- Server - Search tag in module SimpleHttpServer
- Section
- ServerExchangeThrottler - Class in dev.katsute.simplehttpserver.handler.throttler
-
A throttler that limits the amount of simultaneous connections based on individual and total exchanges.
- ServerExchangeThrottler() - Constructor for class dev.katsute.simplehttpserver.handler.throttler.ServerExchangeThrottler
-
Creates a throttler with no total connection limit.
- ServerExchangeThrottler(int) - Constructor for class dev.katsute.simplehttpserver.handler.throttler.ServerExchangeThrottler
-
Creates a throttler with a limit on max total connections.
- ServerSessionThrottler - Class in dev.katsute.simplehttpserver.handler.throttler
-
A throttler that limits the amount of simultaneous connections based on individual and total sessions.
- ServerSessionThrottler(HttpSessionHandler) - Constructor for class dev.katsute.simplehttpserver.handler.throttler.ServerSessionThrottler
-
Creates a throttler with no total connection limit.
- ServerSessionThrottler(HttpSessionHandler, int) - Constructor for class dev.katsute.simplehttpserver.handler.throttler.ServerSessionThrottler
-
Creates a throttler with a limit on max total connections.
- Session - Search tag in class dev.katsute.simplehttpserver.SimpleHttpExchange
- Section
- SessionThrottler - Class in dev.katsute.simplehttpserver.handler.throttler
-
A throttler that limits the amount of simultaneous connections based on the session.
- SessionThrottler(HttpSessionHandler) - Constructor for class dev.katsute.simplehttpserver.handler.throttler.SessionThrottler
-
Creates a throttler.
- setCache(long) - Method in class dev.katsute.simplehttpserver.handler.file.FileOptions.Builder
-
Sets the cache time.
- setContext(String) - Method in class dev.katsute.simplehttpserver.handler.file.FileOptions.Builder
-
Sets the context.
- setCookie(String, String) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sets a cookie for the client.
- setCookie(HttpCookie) - Method in class dev.katsute.simplehttpserver.SimpleHttpExchange
-
Sets a cookie for the client.
- setLoadingOption(FileOptions.FileLoadingOption) - Method in class dev.katsute.simplehttpserver.handler.file.FileOptions.Builder
-
Sets the loading option.
- setMaxServerConnections(int) - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerExchangeThrottler
-
Sets the maximum amount of server connections that is allowed.
- setMaxServerConnections(int) - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerSessionThrottler
-
Sets the maximum amount of server connections that is allowed.
- setSessionHandler(HttpSessionHandler) - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Sets as session handler to use for the server.
- setSessionHandler(HttpSessionHandler) - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Sets as session handler to use for the server.
- setWalk(boolean) - Method in class dev.katsute.simplehttpserver.handler.file.FileOptions.Builder
-
Sets the directory walk option.
- SimpleHttpExchange - Class in dev.katsute.simplehttpserver
-
A
HttpExchange
with additional extensions to simplify usage. - SimpleHttpHandler - Interface in dev.katsute.simplehttpserver
-
A http handler that uses a
SimpleHttpExchange
. - SimpleHttpServer - module SimpleHttpServer
-
SimpleHttpServer Documentation
- SimpleHttpServer - Class in dev.katsute.simplehttpserver
-
A
HttpServer
with additional extensions to simplify usage. - SimpleHttpServer Documentation - Search tag in module SimpleHttpServer
- Section
- SimpleHttpsServer - Class in dev.katsute.simplehttpserver
-
A
HttpsServer
with additional extensions to simplify usage. - SSEHandler - Class in dev.katsute.simplehttpserver.handler
-
A Server sent events (SSE) handler sends events from the server to a client using an
text/event-stream
. - SSEHandler() - Constructor for class dev.katsute.simplehttpserver.handler.SSEHandler
-
Creates a SSE handler.
- Starting the Server - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
- stop() - Method in class dev.katsute.simplehttpserver.SimpleHttpServer
-
Stops the server immediately without waiting.
- stop() - Method in class dev.katsute.simplehttpserver.SimpleHttpsServer
-
Stops the server immediately without waiting.
- Stopping the Server - Search tag in class dev.katsute.simplehttpserver.SimpleHttpServer
- Section
T
- TemporaryHandler - Class in dev.katsute.simplehttpserver.handler
-
Handler that removes itself after a single request, or after a set time, whichever comes first.
- TemporaryHandler(HttpHandler) - Constructor for class dev.katsute.simplehttpserver.handler.TemporaryHandler
-
Creates a temporary handler that removes itself after the first request.
- TemporaryHandler(HttpHandler, long) - Constructor for class dev.katsute.simplehttpserver.handler.TemporaryHandler
-
Creates a temporary handler that removes itself after the first request, or after a set time.
- ThrottledHandler - Class in dev.katsute.simplehttpserver.handler.throttler
-
The throttled handler limits how many simultaneous connections are allowed at any given time.
- ThrottledHandler(ConnectionThrottler, HttpHandler) - Constructor for class dev.katsute.simplehttpserver.handler.throttler.ThrottledHandler
-
Creates a throttled handler.
- TimeoutHandler - Class in dev.katsute.simplehttpserver.handler
-
The timeout handler runs a handler and times out after a set time.
- TimeoutHandler(HttpHandler, double) - Constructor for class dev.katsute.simplehttpserver.handler.TimeoutHandler
-
Creates a timeout handler.
- TimeoutHandler(HttpHandler, double, TimeUnit) - Constructor for class dev.katsute.simplehttpserver.handler.TimeoutHandler
-
Creates a timeout handler.
- toString() - Method in class dev.katsute.simplehttpserver.FileRecord
- toString() - Method in class dev.katsute.simplehttpserver.handler.file.FileHandler
- toString() - Method in class dev.katsute.simplehttpserver.handler.file.FileOptions.Builder
- toString() - Method in class dev.katsute.simplehttpserver.handler.file.FileOptions
- toString() - Method in class dev.katsute.simplehttpserver.handler.PredicateHandler
- toString() - Method in class dev.katsute.simplehttpserver.handler.RedirectHandler
- toString() - Method in class dev.katsute.simplehttpserver.handler.RootHandler
- toString() - Method in class dev.katsute.simplehttpserver.handler.SSEHandler
- toString() - Method in class dev.katsute.simplehttpserver.handler.TemporaryHandler
- toString() - Method in class dev.katsute.simplehttpserver.handler.throttler.ExchangeThrottler
- toString() - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerExchangeThrottler
- toString() - Method in class dev.katsute.simplehttpserver.handler.throttler.ServerSessionThrottler
- toString() - Method in class dev.katsute.simplehttpserver.handler.throttler.SessionThrottler
- toString() - Method in class dev.katsute.simplehttpserver.handler.throttler.ThrottledHandler
- toString() - Method in class dev.katsute.simplehttpserver.handler.TimeoutHandler
- toString() - Method in class dev.katsute.simplehttpserver.HttpSessionHandler
- toString() - Method in class dev.katsute.simplehttpserver.MultipartFormData
- toString() - Method in class dev.katsute.simplehttpserver.Record
U
- update() - Method in class dev.katsute.simplehttpserver.HttpSession
-
Refreshes when the session was last accessed to now.
V
- valueOf(String) - Static method in enum class dev.katsute.simplehttpserver.handler.file.FileOptions.FileLoadingOption
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.katsute.simplehttpserver.handler.file.FileOptions.FileLoadingOption
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- walk - Variable in class dev.katsute.simplehttpserver.handler.file.FileOptions
-
When true, also include all subdirectories when adding directories.
- Walk - Search tag in class dev.katsute.simplehttpserver.handler.file.FileHandler
- Section
All Classes and Interfaces|All Packages
SimpleHttpHandler.handle(SimpleHttpExchange)