Index

A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

ACCEPT - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
ACCEPT_ENCODING - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
ACCEPTED - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
APPLICATION_JSON - Enum constant in enum class net.uiqui.embedhttp.api.ContentType
 
APPLICATION_XML - Enum constant in enum class net.uiqui.embedhttp.api.ContentType
 
AUTHORIZATION - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 

B

BAD_GATEWAY - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
BAD_REQUEST - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
badRequest() - Static method in interface net.uiqui.embedhttp.api.HttpResponse
Creates a new HTTP response with the status code 400 (Bad Request) and the specified body.

C

CACHE_CONTROL - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
compile(String) - Static method in class net.uiqui.embedhttp.routing.PathPatternCompiler
 
CONNECTION - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
CONTENT_LENGTH - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
CONTENT_TYPE - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
ContentType - Enum Class in net.uiqui.embedhttp.api
Enum representing various content types for HTTP responses.
COOKIE - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
CREATED - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
CRLF - Static variable in class net.uiqui.embedhttp.server.ResponseWriter
 

D

DEFAULT_BACKLOG - Static variable in interface net.uiqui.embedhttp.HttpServer
 
delete(String, HttpRequestHandler) - Method in class net.uiqui.embedhttp.api.impl.RoutingBuilder
 
delete(String, HttpRequestHandler) - Method in interface net.uiqui.embedhttp.Router
Registers a handler for DELETE method and path pattern.
DELETE - Enum constant in enum class net.uiqui.embedhttp.api.HttpMethod
 

E

equals(Object) - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class net.uiqui.embedhttp.routing.Route
 
equals(Object) - Method in record class net.uiqui.embedhttp.server.RequestParser.RequestLine
Indicates whether some other object is "equal to" this one.

F

FORBIDDEN - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
FOUND - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
fromString(String) - Static method in enum class net.uiqui.embedhttp.api.HttpMethod
Converts a string to its corresponding HttpMethod enum value.

G

get(String, HttpRequestHandler) - Method in class net.uiqui.embedhttp.api.impl.RoutingBuilder
 
get(String, HttpRequestHandler) - Method in interface net.uiqui.embedhttp.Router
Registers a handler for GET method and path pattern.
GET - Enum constant in enum class net.uiqui.embedhttp.api.HttpMethod
 
getBody() - Method in interface net.uiqui.embedhttp.api.HttpRequest
Gets the body of the request.
getBody() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
 
getBody() - Method in class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
getBody() - Method in class net.uiqui.embedhttp.server.Request
 
getCode() - Method in enum class net.uiqui.embedhttp.api.HttpStatusCode
Enum representing HTTP status codes and their associated reason phrases.
getCurrentState() - Method in class net.uiqui.embedhttp.server.state.StateMachine
 
getHandler() - Method in class net.uiqui.embedhttp.routing.Route
 
getHeaders() - Method in interface net.uiqui.embedhttp.api.HttpRequest
Gets the headers of the request.
getHeaders() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
 
getHeaders() - Method in class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
getHeaders() - Method in class net.uiqui.embedhttp.server.Request
 
getInstancePort() - Method in interface net.uiqui.embedhttp.HttpServer
Retrieves the port on which the server is running.
getInstancePort() - Method in class net.uiqui.embedhttp.server.ServerInstance
 
getMethod() - Method in interface net.uiqui.embedhttp.api.HttpRequest
Gets the HTTP method of the request.
getMethod() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
 
getMethod() - Method in class net.uiqui.embedhttp.routing.Route
 
getMethod() - Method in class net.uiqui.embedhttp.server.Request
 
getPath() - Method in interface net.uiqui.embedhttp.api.HttpRequest
Gets the path of the request (excluding query parameters).
getPath() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
 
getPath() - Method in class net.uiqui.embedhttp.server.Request
 
getPathPattern() - Method in class net.uiqui.embedhttp.routing.Route
 
getPathRegexPattern() - Method in class net.uiqui.embedhttp.routing.Route
 
getQuery() - Method in class net.uiqui.embedhttp.server.Request
 
getQueryParameters() - Method in interface net.uiqui.embedhttp.api.HttpRequest
Gets the query parameters from the URL.
getQueryParameters() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
 
getReasonPhrase() - Method in enum class net.uiqui.embedhttp.api.HttpStatusCode
Gets the reason phrase associated with the HTTP status code.
getRoutesForMethod(HttpMethod) - Method in class net.uiqui.embedhttp.api.impl.RoutingBuilder
 
getStatusCode() - Method in class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
getStatusMessage() - Method in class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
getUrl() - Method in class net.uiqui.embedhttp.server.Request
 
getURL() - Method in interface net.uiqui.embedhttp.api.HttpRequest
Gets the full URL of the request.
getURL() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
 
getValue() - Method in enum class net.uiqui.embedhttp.api.ContentType
Returns the string representation of the content type.
getValue() - Method in enum class net.uiqui.embedhttp.api.HttpHeader
Gets the string value of the HTTP header.

H

handle(HttpRequest) - Method in interface net.uiqui.embedhttp.api.HttpRequestHandler
Handles an HTTP request and returns an HTTP response.
hashCode() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
Returns a hash code value for this object.
hashCode() - Method in class net.uiqui.embedhttp.routing.Route
 
hashCode() - Method in record class net.uiqui.embedhttp.server.RequestParser.RequestLine
Returns a hash code value for this object.
head(String, HttpRequestHandler) - Method in class net.uiqui.embedhttp.api.impl.RoutingBuilder
 
head(String, HttpRequestHandler) - Method in interface net.uiqui.embedhttp.Router
Registers a handler for HEAD method and path pattern.
HEAD - Enum constant in enum class net.uiqui.embedhttp.api.HttpMethod
 
HOST - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
HTTP_VERSION_1_1 - Static variable in class net.uiqui.embedhttp.server.ResponseWriter
 
HttpHeader - Enum Class in net.uiqui.embedhttp.api
Enum representing common HTTP headers.
HttpMethod - Enum Class in net.uiqui.embedhttp.api
Enum representing the HTTP methods supported by the server.
HttpRequest - Interface in net.uiqui.embedhttp.api
Class representing an HTTP request.
HttpRequestHandler - Interface in net.uiqui.embedhttp.api
Interface representing an HTTP request handler.
HttpRequestImpl - Record Class in net.uiqui.embedhttp.api.impl
 
HttpRequestImpl(Request, Route, Map<String, String>) - Constructor for record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
Creates an instance of a HttpRequestImpl record class.
HttpResponse - Interface in net.uiqui.embedhttp.api
Class representing an HTTP response.
HttpResponseImpl - Class in net.uiqui.embedhttp.api.impl
 
HttpResponseImpl(int, String) - Constructor for class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
HttpResponseImpl(HttpStatusCode) - Constructor for class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
HttpServer - Interface in net.uiqui.embedhttp
Interface for an HTTP server.
HttpStatusCode - Enum Class in net.uiqui.embedhttp.api
Enum representing HTTP status codes and their associated reason phrases.

I

INTERNAL_SERVER_ERROR - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
isRunning() - Method in interface net.uiqui.embedhttp.HttpServer
Checks if the server is currently running.
isRunning() - Method in class net.uiqui.embedhttp.server.ServerInstance
 
isValidStateChange(ServerState, ServerState) - Method in class net.uiqui.embedhttp.server.state.StateMachine
 

L

LOCATION - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 

M

method() - Method in record class net.uiqui.embedhttp.server.RequestParser.RequestLine
Returns the value of the method record component.
MOVED_PERMANENTLY - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 

N

net.uiqui.embedhttp - package net.uiqui.embedhttp
 
net.uiqui.embedhttp.api - package net.uiqui.embedhttp.api
 
net.uiqui.embedhttp.api.impl - package net.uiqui.embedhttp.api.impl
 
net.uiqui.embedhttp.routing - package net.uiqui.embedhttp.routing
 
net.uiqui.embedhttp.server - package net.uiqui.embedhttp.server
 
net.uiqui.embedhttp.server.state - package net.uiqui.embedhttp.server.state
 
newInstance(int) - Static method in interface net.uiqui.embedhttp.HttpServer
Creates a new instance of the HTTP server with the specified port and default backlog.
newRouter() - Static method in interface net.uiqui.embedhttp.Router
Creates a new router instance.
NO_CONTENT - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
noContent() - Static method in interface net.uiqui.embedhttp.api.HttpResponse
Creates a new HTTP response with the status code 500 (Internal Server Error) and the specified body.
NOT_FOUND - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
NOT_IMPLEMENTED - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
NOT_MODIFIED - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
notFound() - Static method in interface net.uiqui.embedhttp.api.HttpResponse
Creates a new HTTP response with the status code 404 (Not Found) and the specified body.

O

ok() - Static method in interface net.uiqui.embedhttp.api.HttpResponse
Creates a new HTTP response with the status code 200 (OK) and the specified body.
OK - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
options(String, HttpRequestHandler) - Method in class net.uiqui.embedhttp.api.impl.RoutingBuilder
 
options(String, HttpRequestHandler) - Method in interface net.uiqui.embedhttp.Router
Registers a handler for OPTIONS method and path pattern.
OPTIONS - Enum constant in enum class net.uiqui.embedhttp.api.HttpMethod
 
ORIGIN - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 

P

parseRequest(InputStream) - Method in class net.uiqui.embedhttp.server.RequestParser
 
patch(String, HttpRequestHandler) - Method in class net.uiqui.embedhttp.api.impl.RoutingBuilder
 
patch(String, HttpRequestHandler) - Method in interface net.uiqui.embedhttp.Router
Registers a handler for PATCH method and path pattern.
PATCH - Enum constant in enum class net.uiqui.embedhttp.api.HttpMethod
 
pathParameters() - Method in interface net.uiqui.embedhttp.api.HttpRequest
Gets the path parameters extracted from the URL.
pathParameters() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
Returns the value of the pathParameters record component.
PathPatternCompiler - Class in net.uiqui.embedhttp.routing
 
pathToRegex(String) - Static method in class net.uiqui.embedhttp.routing.PathPatternCompiler
 
post(String, HttpRequestHandler) - Method in class net.uiqui.embedhttp.api.impl.RoutingBuilder
 
post(String, HttpRequestHandler) - Method in interface net.uiqui.embedhttp.Router
Registers a handler for POST method and path pattern.
POST - Enum constant in enum class net.uiqui.embedhttp.api.HttpMethod
 
process(Socket) - Method in class net.uiqui.embedhttp.server.RequestProcessor
 
put(String, HttpRequestHandler) - Method in class net.uiqui.embedhttp.api.impl.RoutingBuilder
 
put(String, HttpRequestHandler) - Method in interface net.uiqui.embedhttp.Router
Registers a handler for PUT method and path pattern.
PUT - Enum constant in enum class net.uiqui.embedhttp.api.HttpMethod
 

R

REFERER - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
request() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
Returns the value of the request record component.
Request - Class in net.uiqui.embedhttp.server
 
Request(HttpMethod, String, Map<String, String>, String) - Constructor for class net.uiqui.embedhttp.server.Request
 
RequestLine(HttpMethod, String, String) - Constructor for record class net.uiqui.embedhttp.server.RequestParser.RequestLine
Creates an instance of a RequestLine record class.
RequestParser - Class in net.uiqui.embedhttp.server
 
RequestParser() - Constructor for class net.uiqui.embedhttp.server.RequestParser
 
RequestParser.RequestLine - Record Class in net.uiqui.embedhttp.server
 
RequestProcessor - Class in net.uiqui.embedhttp.server
 
RequestProcessor(RequestParser, ResponseWriter, RouterImpl) - Constructor for class net.uiqui.embedhttp.server.RequestProcessor
 
ResponseWriter - Class in net.uiqui.embedhttp.server
 
ResponseWriter() - Constructor for class net.uiqui.embedhttp.server.ResponseWriter
 
route() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
Returns the value of the route record component.
Route - Class in net.uiqui.embedhttp.routing
 
Route(HttpMethod, String, HttpRequestHandler) - Constructor for class net.uiqui.embedhttp.routing.Route
 
Router - Interface in net.uiqui.embedhttp
Interface for a router that maps HTTP request paths to handlers.
routeRequest(Request) - Method in class net.uiqui.embedhttp.api.impl.RouterImpl
 
RouterImpl - Class in net.uiqui.embedhttp.api.impl
 
RouterImpl() - Constructor for class net.uiqui.embedhttp.api.impl.RouterImpl
 
RoutingBuilder - Class in net.uiqui.embedhttp.api.impl
 
RoutingBuilder() - Constructor for class net.uiqui.embedhttp.api.impl.RoutingBuilder
 
RUNNING - Enum constant in enum class net.uiqui.embedhttp.server.state.ServerState
 

S

ServerInstance - Class in net.uiqui.embedhttp.server
 
ServerInstance(int, int) - Constructor for class net.uiqui.embedhttp.server.ServerInstance
 
ServerState - Enum Class in net.uiqui.embedhttp.server.state
 
SERVICE_UNAVAILABLE - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
SET_COOKIE - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
setBody(String, String) - Method in interface net.uiqui.embedhttp.api.HttpResponse
Sets the body of the response with a specific content type.
setBody(String, String) - Method in class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
setBody(ContentType, String) - Method in interface net.uiqui.embedhttp.api.HttpResponse
Sets the body of the response with a specific content type.
setBody(ContentType, String) - Method in class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
setHeader(String, String) - Method in interface net.uiqui.embedhttp.api.HttpResponse
Sets a header for the response.
setHeader(String, String) - Method in class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
setHeader(HttpHeader, String) - Method in interface net.uiqui.embedhttp.api.HttpResponse
Sets a header for the response.
setHeader(HttpHeader, String) - Method in class net.uiqui.embedhttp.api.impl.HttpResponseImpl
 
setState(ServerState) - Method in class net.uiqui.embedhttp.server.state.StateMachine
 
SO_TIMEOUT - Static variable in class net.uiqui.embedhttp.server.ServerInstance
 
start(Router) - Method in interface net.uiqui.embedhttp.HttpServer
Starts the HTTP server with the specified router.
start(Router) - Method in class net.uiqui.embedhttp.server.ServerInstance
 
STARTING - Enum constant in enum class net.uiqui.embedhttp.server.state.ServerState
 
StateMachine - Class in net.uiqui.embedhttp.server.state
 
StateMachine(ServerState) - Constructor for class net.uiqui.embedhttp.server.state.StateMachine
 
stop() - Method in interface net.uiqui.embedhttp.HttpServer
Stops the HTTP server.
stop() - Method in class net.uiqui.embedhttp.server.ServerInstance
 
STOPPED - Enum constant in enum class net.uiqui.embedhttp.server.state.ServerState
 
STOPPING - Enum constant in enum class net.uiqui.embedhttp.server.state.ServerState
 

T

TEXT_HTML - Enum constant in enum class net.uiqui.embedhttp.api.ContentType
 
TEXT_PLAIN - Enum constant in enum class net.uiqui.embedhttp.api.ContentType
 
toString() - Method in record class net.uiqui.embedhttp.api.impl.HttpRequestImpl
Returns a string representation of this record class.
toString() - Method in record class net.uiqui.embedhttp.server.RequestParser.RequestLine
Returns a string representation of this record class.
TRANSFER_ENCODING - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 

U

UNAUTHORIZED - Enum constant in enum class net.uiqui.embedhttp.api.HttpStatusCode
 
unexpectedError() - Static method in interface net.uiqui.embedhttp.api.HttpResponse
Creates a new HTTP response with the status code 500 (Internal Server Error) and the specified body.
UPGRADE_INSECURE_REQUESTS - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 
url() - Method in record class net.uiqui.embedhttp.server.RequestParser.RequestLine
Returns the value of the url record component.
USER_AGENT - Enum constant in enum class net.uiqui.embedhttp.api.HttpHeader
 

V

valueOf(String) - Static method in enum class net.uiqui.embedhttp.api.ContentType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class net.uiqui.embedhttp.api.HttpHeader
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class net.uiqui.embedhttp.api.HttpMethod
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class net.uiqui.embedhttp.api.HttpStatusCode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class net.uiqui.embedhttp.server.state.ServerState
Returns the enum constant of this class with the specified name.
values() - Static method in enum class net.uiqui.embedhttp.api.ContentType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class net.uiqui.embedhttp.api.HttpHeader
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class net.uiqui.embedhttp.api.HttpMethod
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class net.uiqui.embedhttp.api.HttpStatusCode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class net.uiqui.embedhttp.server.state.ServerState
Returns an array containing the constants of this enum class, in the order they are declared.
version() - Method in record class net.uiqui.embedhttp.server.RequestParser.RequestLine
Returns the value of the version record component.

W

waitForState(ServerState...) - Method in class net.uiqui.embedhttp.server.state.StateMachine
 
withStatus(int, String) - Static method in interface net.uiqui.embedhttp.api.HttpResponse
Creates a new HTTP response with the specified status code and message.
withStatus(HttpStatusCode) - Static method in interface net.uiqui.embedhttp.api.HttpResponse
Creates a new HTTP response with the specified status code and default message.
writeResponse(OutputStream, HttpResponseImpl) - Method in class net.uiqui.embedhttp.server.ResponseWriter
 
A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values