A B C D E F G H I J L M O P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addDirectory(File) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler.
- addDirectory(File, boolean) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler.
- addDirectory(File, ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler.
- addDirectory(File, ByteLoadingOption, boolean) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler.
- addDirectory(File, String) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler with a specified name.
- addDirectory(File, String, boolean) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler with a specified name.
- addDirectory(File, String, ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler with a specified name.
- addDirectory(File, String, ByteLoadingOption, boolean) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler with a specified name.
- addDirectory(String, File) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler at a specified context.
- addDirectory(String, File, boolean) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler at a specified context.
- addDirectory(String, File, ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler at a specified context.
- addDirectory(String, File, ByteLoadingOption, boolean) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler at a specified context.
- addDirectory(String, File, String) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler at a specified context with a specified name.
- addDirectory(String, File, String, boolean) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler at a specified context with a specified name.
- addDirectory(String, File, String, ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler at a specified context with a specified name.
- addDirectory(String, File, String, ByteLoadingOption, boolean) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a directory to the handler at a specified context with a specified name.
- addFile(File) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a file to the handler.
- addFile(File, ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a file to the handler.
- addFile(File, String) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a file to the handler with a specified name.
- addFile(File, String, ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a file to the handler with a specified name.
- addFile(String, File) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a file to the handler at a specified context.
- addFile(String, File, ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a file to the handler at a specified context.
- addFile(String, File, String) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a file to the handler at a specified context with a specified name.
- addFile(String, File, String, ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds a file to the handler at a specified context with a specified name.
- addFiles(File[]) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds multiple files to the handler.
- addFiles(File[], ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds multiple files to the handler.
- addFiles(String, File[]) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds multiple files to the handler at a specified context.
- addFiles(String, File[], ByteLoadingOption) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Adds multiple files to the handler at a specified context.
- assignSessionID(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.HttpSessionHandler
-
Assigns a session id to a client.
B
- bind(int) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Binds the server to a port.
- bind(int, int) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Binds the server to a port.
- bind(InetSocketAddress) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Binds the server to a port.
- bind(InetSocketAddress, int) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Binds the server to a port.
- build() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns the completed cookie.
- Builder(String, String) - Constructor for class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Creates an HTTP cookie builder given a key and value.
- ByteLoadingOption - Enum in com.kttdevelopment.simplehttpserver.handler
-
Determines how files will be loaded in the
FileHandler.
C
- CacheFileAdapter - Class in com.kttdevelopment.simplehttpserver.handler
-
This class caches file bytes when adding to the
FileHandler. - CacheFileAdapter(long) - Constructor for class com.kttdevelopment.simplehttpserver.handler.CacheFileAdapter
-
Creates a CacheFileAdapter where files will expire after set milliseconds.
- CacheFileAdapter(long, TimeUnit) - Constructor for class com.kttdevelopment.simplehttpserver.handler.CacheFileAdapter
-
Creates a CacheFileAdapter where files will expire after a set time.
- CACHELOAD - com.kttdevelopment.simplehttpserver.handler.ByteLoadingOption
- canIgnoreConnectionLimit(HttpSession, HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.ServerSessionThrottler
-
Returns if a session is exempt from the server connection limit only.
- canIgnoreConnectionLimit(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.ServerExchangeThrottler
-
Returns if an exchange is exempt from the server connection limit only.
- close() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Closes the exchange between the client and server.
- com.kttdevelopment.simplehttpserver - package com.kttdevelopment.simplehttpserver
- com.kttdevelopment.simplehttpserver.handler - package com.kttdevelopment.simplehttpserver.handler
- CONNECT - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
- ContextUtil - Class in com.kttdevelopment.simplehttpserver
-
A utility class used to generate uniform contexts.
- ContextUtil() - Constructor for class com.kttdevelopment.simplehttpserver.ContextUtil
- create() - Static method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Creates a
SimpleHttpServer. - create() - Static method in class com.kttdevelopment.simplehttpserver.SimpleHttpsServer
-
Creates a
SimpleHttpsServer. - create(int) - Static method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Creates a
SimpleHttpServerbounded to a port. - create(int) - Static method in class com.kttdevelopment.simplehttpserver.SimpleHttpsServer
-
Creates a
SimpleHttpsServerbounded to a port. - create(int, int) - Static method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Creates a
SimpleHttpServerbounded to a port. - create(int, int) - Static method in class com.kttdevelopment.simplehttpserver.SimpleHttpsServer
-
Creates a
SimpleHttpsServerbounded to a port. - createContext(String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Creates an empty context.
- createContext(String, Authenticator) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Creates a context mapped to a specific
HttpContextwith anAuthenticator. - createContext(String, HttpHandler) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Creates a context mapped to a specified
HttpHandler. - createContext(String, HttpHandler, Authenticator) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Creates a context mapped to a specific
HttpContextwith anAuthenticator.
D
- DELETE - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
E
- ExchangeThrottler - Class in com.kttdevelopment.simplehttpserver.handler
-
Limits connections per address to the server.
- ExchangeThrottler() - Constructor for class com.kttdevelopment.simplehttpserver.handler.ExchangeThrottler
-
Creates a throttler with limits on each exchange.
F
- FileHandler - Class in com.kttdevelopment.simplehttpserver.handler
-
A request handler that processes files using the
FileHandlerAdapter. - FileHandler() - Constructor for class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Creates a file handler without a
FileHandlerAdapter. - FileHandler(FileHandlerAdapter) - Constructor for class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Creates a file handler with a
FileHandler. - FileHandlerAdapter - Interface in com.kttdevelopment.simplehttpserver.handler
-
This interface determines the file name and bytes to use when adding to
FileHandler. - FileRecord - Class in com.kttdevelopment.simplehttpserver
-
This class represents on set of headers and parameters in a multipart/form-data that is expected of a file input.
G
- GET - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
- getAddress() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Returns the address that the server is binded to.
- getAttribute(String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns attribute for filters use.
- getBytes() - Method in class com.kttdevelopment.simplehttpserver.FileRecord
-
Returns the file as bytes.
- getContentType() - Method in class com.kttdevelopment.simplehttpserver.FileRecord
-
Returns the content type of the file.
- getContext(String, boolean, boolean) - Static method in class com.kttdevelopment.simplehttpserver.ContextUtil
-
Generates a uniform context with forward slashes removing any consecutive slashes.
- getContextHandler(HttpContext) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Returns the handler mapped to a context or null if it is not found.
- getContextHandler(String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Returns the handler mapped to a context or null if none is found.
- getContexts() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Returns a copy of the server's contexts and their respective handlers.
- getCookies() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the client's existing cookies as a map of keys and values.
- getCreationTime() - Method in class com.kttdevelopment.simplehttpserver.HttpSession
-
Returns when the session was created.
- getDomain() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns the domain to send the cookie to.
- getExecutor() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Returns the server's executor or null if none exists.
- getExpires() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns when the cookie should expire.
- getFileName() - Method in class com.kttdevelopment.simplehttpserver.FileRecord
-
Returns the file name.
- getGetMap() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the GET request as a map with its keys and values.
- getHeader(String) - Method in class com.kttdevelopment.simplehttpserver.Record
-
Returns a specified header.
- getHeaderName() - Method in class com.kttdevelopment.simplehttpserver.Record.Header
-
Returns the header name
- getHeaders() - Method in class com.kttdevelopment.simplehttpserver.Record
-
Returns all the headers.
- getHeaderValue() - Method in class com.kttdevelopment.simplehttpserver.Record.Header
-
Returns the header value
- getHttpContext() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the context associated with the exchange.
- getHttpExchange() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the native http exchange.
- getHttpPrincipal() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the http principle for the exchange.
- getHttpsConfigurator() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpsServer
-
Returns the https configurator of the server
- getHttpServer() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the server where the request came from.
- getHttpServer() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Returns the native http server.
- getHttpServer() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpsServer
-
Returns the native https server.
- getHttpSession(SimpleHttpExchange) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Returns the session associated with an exchange or null it no session handler exists.
- getHttpSession(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Returns the session associated with an exchange or null if no session handler exists.
- getHttpSessionHandler() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Returns the session handler for the server or null if none exists.
- getLastAccessTime() - Method in class com.kttdevelopment.simplehttpserver.HttpSession
-
Returns when the session was last used.
- getLocalAddress() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the client's local address on the server.
- getMaxAge() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns how long the cookie should exist for.
- getMaxConnections(HttpSession, HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.ServerSessionThrottler
-
Returns the maximum number of connections for a session.
- getMaxConnections(HttpSession, HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.SessionThrottler
-
Returns the maximum number of connections for a session.
- getMaxConnections(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.ExchangeThrottler
- getMaxConnections(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.ServerExchangeThrottler
- getMaxConnections(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.ServerSessionThrottler
- getMaxConnections(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.SessionThrottler
- getMaxServerConnections() - Method in class com.kttdevelopment.simplehttpserver.handler.ServerExchangeThrottler
-
Returns the maximum number of connections the server can have.
- getMaxServerConnections() - Method in class com.kttdevelopment.simplehttpserver.handler.ServerSessionThrottler
-
Returns the maximum number of connections the server can have.
- getMultipartFormData() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns a multipart/form-data as an object or null if there is none.
- getName() - Method in class com.kttdevelopment.simplehttpserver.Record
-
Returns form input name.
- getName() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns the name of the cookie.
- getOutputStream() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the exchange response stream.
- getParameter(String) - Method in class com.kttdevelopment.simplehttpserver.Record.Header
-
Returns specific header parameter.
- getParameters() - Method in class com.kttdevelopment.simplehttpserver.Record.Header
-
Returns all the header parameters.
- getPath() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns the path to send the cookie to.
- getPostMap() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the POST request as keys mapped to values.
- getProtocol() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the protocol for the URI address.
- getPublicAddress() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the client's public address.
- getRandomContext() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Generates a random context at the root that can be used on the server.
- getRandomContext(String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Generates a random context that can be used on the server.
- getRawGet() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the GET request as a string.
- getRawPost() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the POST request as a string.
- getRecord(String) - Method in class com.kttdevelopment.simplehttpserver.MultipartFormData
-
Returns the record for key or null if none is found.
- getRecords() - Method in class com.kttdevelopment.simplehttpserver.MultipartFormData
-
Returns all the records in the multipart/form-data;
- getRequestHeaders() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the request headers.
- getRequestMethod() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the request method.
- getResponseCode() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the response headers to be sent.
- getResponseHeaders() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the response headers to be sent.
- getSession(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.HttpSessionHandler
-
Returns the session of the client or assigns one if it does not yet have one Session will only be saved client side if the exchange headers are sent using
HttpExchange.sendResponseHeaders(int, long). - getSessionID() - Method in class com.kttdevelopment.simplehttpserver.HttpSession
-
Returns the session id.
- getURI() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns the exchange URI.
- getValue() - Method in class com.kttdevelopment.simplehttpserver.Record
-
Returns the value as a string.
- getValue() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns the value of the cookie.
H
- handle(SimpleHttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
- handle(SimpleHttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.RedirectHandler
- handle(SimpleHttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.SSEHandler
- handle(SimpleHttpExchange) - Method in interface com.kttdevelopment.simplehttpserver.SimpleHttpHandler
-
Handlers the given request and generates a response if no exceptions occur.
- handle(SimpleHttpExchange, File, byte[]) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Handles a file and gives a response.
- handle(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
- handle(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.PredicateHandler
- handle(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.RedirectHandler
- handle(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.SSEHandler
- handle(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.TemporaryHandler
- handle(HttpExchange) - Method in class com.kttdevelopment.simplehttpserver.handler.ThrottledHandler
- handle(HttpExchange) - Method in interface com.kttdevelopment.simplehttpserver.SimpleHttpHandler
-
Encapsulates the
SimpleHttpHandler.handle(SimpleHttpExchange)for the authenticator. - hasGet() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns if there is a GET request.
- hasPost() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Returns if there is a POST request.
- HEAD - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
- HttpRequestMethod - Class in com.kttdevelopment.simplehttpserver
-
A list of expected HTTP method requests.
- HttpRequestMethod() - Constructor for class com.kttdevelopment.simplehttpserver.HttpRequestMethod
- HttpSession - Class in com.kttdevelopment.simplehttpserver
-
A session keeps track of a single client across multiple exchanges.
- HttpSession() - Constructor for class com.kttdevelopment.simplehttpserver.HttpSession
-
Creates an empty
HttpSession. - HttpSessionHandler - Class in com.kttdevelopment.simplehttpserver
-
This class assigns
HttpSessionto every client. - HttpSessionHandler() - Constructor for class com.kttdevelopment.simplehttpserver.HttpSessionHandler
-
Creates a session handler using the cookie
__session-id. - HttpSessionHandler(String) - Constructor for class com.kttdevelopment.simplehttpserver.HttpSessionHandler
-
Creates a session handler, storing the id at the specified cookie.
I
- isHttpOnly() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns if only the server should have access to the cookies.
- isSameSite() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns if the cookie should be prevented from being sent cross-site.
- isSecure() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Returns if the cookie must be sent over a secure/HTTPS protocol.
J
- joinContexts(boolean, boolean, String...) - Static method in class com.kttdevelopment.simplehttpserver.ContextUtil
-
Generates a uniform context given a set of strings using forward slashes and removing consecutive slashes.
L
- LIVELOAD - com.kttdevelopment.simplehttpserver.handler.ByteLoadingOption
M
- MODLOAD - com.kttdevelopment.simplehttpserver.handler.ByteLoadingOption
- MultipartFormData - Class in com.kttdevelopment.simplehttpserver
-
This class represents a POST request map as a multipart/form-data.
O
- OPTIONS - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
P
- PATCH - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
- POST - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
- PredicateHandler - Class in com.kttdevelopment.simplehttpserver.handler
-
The handler will process each request differently depending on the predicate.
- PredicateHandler(HttpHandler, HttpHandler, Predicate<HttpExchange>) - Constructor for class com.kttdevelopment.simplehttpserver.handler.PredicateHandler
-
Deprecated.
- PredicateHandler(Predicate<HttpExchange>, HttpHandler, HttpHandler) - Constructor for class com.kttdevelopment.simplehttpserver.handler.PredicateHandler
-
Creates a predicate handler.
- PRELOAD - com.kttdevelopment.simplehttpserver.handler.ByteLoadingOption
- push(String) - Method in class com.kttdevelopment.simplehttpserver.handler.SSEHandler
-
Pushes an event to the stream.
- push(String, int, String) - Method in class com.kttdevelopment.simplehttpserver.handler.SSEHandler
-
Pushes an event to the stream.
- PUT - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
R
- Record - Class in com.kttdevelopment.simplehttpserver
-
This class represents one set of headers and parameters in a multipart/form-data.
- Record.Header - Class in com.kttdevelopment.simplehttpserver
-
Represents a header in a multipart/form-data.
- RedirectHandler - Class in com.kttdevelopment.simplehttpserver.handler
-
A request handler that redirects to a different URL without pushing to the history.
- RedirectHandler(String) - Constructor for class com.kttdevelopment.simplehttpserver.handler.RedirectHandler
-
Creates a redirect to a URL.
- removeContext(HttpContext) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Removes the context from the server.
- removeContext(String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Removes the context at the context.
- removeDirectory(File) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Removes a directory from the handler.
- removeDirectory(String) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Removes a directory from the handler at a specified context.
- removeDirectory(String, File) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Removes a directory from the handler at a specified context.
- removeFile(File) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Removes a file from the handler.
- removeFile(String) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Removes a file from the handler at a specified context.
- removeFile(String, File) - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
-
Removes a file from the handler at a specified context.
- RootHandler - Class in com.kttdevelopment.simplehttpserver.handler
-
By default the
HttpServerwill use the most specific context for requests; this however causes the context/to catch all contexts without an associated handler, instead of sending a 404 or no response. - RootHandler(HttpHandler, HttpHandler) - Constructor for class com.kttdevelopment.simplehttpserver.handler.RootHandler
-
Creates a root handler.
S
- send(byte[]) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a response to the client.
- send(byte[], boolean) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a response to the client.
- send(byte[], int) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a response with response code to the client.
- send(byte[], int, boolean) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a response with response code to the client.
- send(int) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a response code to the client.
- send(File) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a file to the client.
- send(File, boolean) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a file to the client.
- send(File, int) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a file with response code to the client.
- send(File, int, boolean) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a file with response code to the client.
- send(String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a response to the client.
- send(String, boolean) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a response to the client.
- send(String, int) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a response with response code to the client.
- send(String, int, boolean) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends a response with response code to the client.
- sendResponseHeaders(int, long) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sends response headers to the client.
- ServerExchangeThrottler - Class in com.kttdevelopment.simplehttpserver.handler
-
Limits connections per address to the server and total server connections.
- ServerExchangeThrottler() - Constructor for class com.kttdevelopment.simplehttpserver.handler.ServerExchangeThrottler
-
Creates a throttler with connection limits on user and total connections.
- ServerExchangeThrottler(int) - Constructor for class com.kttdevelopment.simplehttpserver.handler.ServerExchangeThrottler
-
Creates a throttler with connection limits on user and total connections.
- ServerSessionThrottler - Class in com.kttdevelopment.simplehttpserver.handler
-
Limits connections per session to the server and total server sessions.
- ServerSessionThrottler(HttpSessionHandler) - Constructor for class com.kttdevelopment.simplehttpserver.handler.ServerSessionThrottler
-
Creates a throttler with limits on session and total connections.
- ServerSessionThrottler(HttpSessionHandler, int) - Constructor for class com.kttdevelopment.simplehttpserver.handler.ServerSessionThrottler
-
Creates a throttler with limits on session and total connections.
- SessionThrottler - Class in com.kttdevelopment.simplehttpserver.handler
-
Limits connections per http session.
- SessionThrottler(HttpSessionHandler) - Constructor for class com.kttdevelopment.simplehttpserver.handler.SessionThrottler
-
Creates a throttler that allows no connections.
- setAttribute(String, Object) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sets attribute for filter use.
- setCookie(SimpleHttpCookie) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sets a cookie in the response header.
- setCookie(String, String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Sets a cookie in the response header.
- setDomain(String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Sets the domain of the cookie.
- setExecutor(Executor) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Sets the server's executor.
- setExpires(Date) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Sets when the cookie should expire.
- setHttpOnly(boolean) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Sets if only the server should have access to the cookies.
- setHttpsConfigurator(HttpsConfigurator) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpsServer
-
Sets a https configurator for the server
- setHttpSessionHandler(HttpSessionHandler) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Sets a session handler for the server.
- setMaxAge(int) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Sets how long the cookie should exist for.
- setMaxServerConnections(int) - Method in class com.kttdevelopment.simplehttpserver.handler.ServerExchangeThrottler
-
Sets the maximum number of connections the server can have.
- setMaxServerConnections(int) - Method in class com.kttdevelopment.simplehttpserver.handler.ServerSessionThrottler
-
Sets the maximum number of connections the server can have.
- setPath(String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Sets the path of the cookie.
- setSameSite(String) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Sets if the cookie should be prevented from being sent cross-site.
- setSecure(boolean) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie.Builder
-
Sets if the cookie must be sent over a secure/HTTPS protocol.
- SimpleHttpCookie - Class in com.kttdevelopment.simplehttpserver
-
An HTTP Cookie to be sent in a response header.
- SimpleHttpCookie.Builder - Class in com.kttdevelopment.simplehttpserver
-
Builder class for
SimpleHttpCookie. - SimpleHttpExchange - Class in com.kttdevelopment.simplehttpserver
-
This class is a simplified implementation of
HttpExchange. - SimpleHttpExchange() - Constructor for class com.kttdevelopment.simplehttpserver.SimpleHttpExchange
-
Create an empty
SimpleHttpExchange. - SimpleHttpHandler - Interface in com.kttdevelopment.simplehttpserver
-
A simplified implementation of
HttpHandler. - simplehttpserver - module simplehttpserver
- SimpleHttpServer - Class in com.kttdevelopment.simplehttpserver
-
This class is a simplified implementation of
HttpServer.
At least oneHttpHandlermust be created in order to process requests. - SimpleHttpServer() - Constructor for class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Creates an empty
SimpleHttpServer. - SimpleHttpsServer - Class in com.kttdevelopment.simplehttpserver
-
This class is a simplified implementation of
HttpsServer. The server must have aHttpsConfiguratorset usingSimpleHttpsServer.setHttpsConfigurator(HttpsConfigurator).
At least oneHttpHandlermust be created in order to process requests. - SimpleHttpsServer() - Constructor for class com.kttdevelopment.simplehttpserver.SimpleHttpsServer
-
Creates an empty
SimpleHttpsServer. - SSEHandler - Class in com.kttdevelopment.simplehttpserver.handler
-
A SSE handler allows server to client events by using an
text/event-stream. - SSEHandler() - Constructor for class com.kttdevelopment.simplehttpserver.handler.SSEHandler
- start() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Starts the server.
- stop() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Stops the server and all active requests.
- stop(int) - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpServer
-
Stops the server with a delay for remaining requests.
T
- TemporaryHandler - Class in com.kttdevelopment.simplehttpserver.handler
-
A temporary handler handles a single request and then removes itself from the server.
- TemporaryHandler(SimpleHttpServer, HttpHandler) - Constructor for class com.kttdevelopment.simplehttpserver.handler.TemporaryHandler
-
Creates a temporary handler that removes itself after the first connection.
- TemporaryHandler(SimpleHttpServer, HttpHandler, long) - Constructor for class com.kttdevelopment.simplehttpserver.handler.TemporaryHandler
-
Creates a temporary handler that removes itself after the first connection, or after the time expires.
- TemporaryHandler(HttpHandler) - Constructor for class com.kttdevelopment.simplehttpserver.handler.TemporaryHandler
-
Creates a temporary handler that removes itself after the first connection.
- TemporaryHandler(HttpHandler, long) - Constructor for class com.kttdevelopment.simplehttpserver.handler.TemporaryHandler
-
Creates a temporary handler that removes itself after the first connection, or after the time expires.
- ThrottledHandler - Class in com.kttdevelopment.simplehttpserver.handler
-
This handler limits the amount of active connections to a handler.
- ThrottledHandler(HttpHandler, ConnectionThrottler) - Constructor for class com.kttdevelopment.simplehttpserver.handler.ThrottledHandler
-
Creates a throttled handler using a throttler.
- toCookieHeaderString() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie
-
Converts the cookie to a readable string for a response header.
- toString() - Method in class com.kttdevelopment.simplehttpserver.FileRecord
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.CacheFileAdapter
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.ExchangeThrottler
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.FileHandler
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.PredicateHandler
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.RedirectHandler
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.ServerExchangeThrottler
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.ServerSessionThrottler
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.SessionThrottler
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.SSEHandler
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.TemporaryHandler
- toString() - Method in class com.kttdevelopment.simplehttpserver.handler.ThrottledHandler
- toString() - Method in class com.kttdevelopment.simplehttpserver.HttpSessionHandler
- toString() - Method in class com.kttdevelopment.simplehttpserver.MultipartFormData
- toString() - Method in class com.kttdevelopment.simplehttpserver.Record.Header
- toString() - Method in class com.kttdevelopment.simplehttpserver.Record
- toString() - Method in class com.kttdevelopment.simplehttpserver.SimpleHttpCookie
- TRACE - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
U
- UNSUPPORTED - Static variable in class com.kttdevelopment.simplehttpserver.HttpRequestMethod
- updateLastAccessTime() - Method in class com.kttdevelopment.simplehttpserver.HttpSession
-
Updates the last access time for the session
V
- valueOf(String) - Static method in enum com.kttdevelopment.simplehttpserver.handler.ByteLoadingOption
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.kttdevelopment.simplehttpserver.handler.ByteLoadingOption
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages