A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes All Packages

A

AbstractUser(String) - Constructor for class com.github.fmjsjx.libnetty.http.server.HttpServer.AbstractUser
 
acceptCause(Throwable) - Method in class com.github.fmjsjx.libnetty.http.server.component.SimpleExceptionHandler
Returns true if the given cause should be handled.
AccessLogger - Class in com.github.fmjsjx.libnetty.http.server.middleware
A Middleware logging HTTP access logs.
AccessLogger() - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger
 
AccessLogger(AccessLogger.LogFormat) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger
 
AccessLogger(AccessLogger.LoggerWrapper, AccessLogger.LogFormat) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger
 
AccessLogger(AccessLogger.LoggerWrapper, String) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger
 
AccessLogger(String) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger
 
AccessLogger.FunctionalLoggerWrapper - Class in com.github.fmjsjx.libnetty.http.server.middleware
 
AccessLogger.LogFormat - Enum in com.github.fmjsjx.libnetty.http.server.middleware
Some pre-defined log formats.
AccessLogger.LoggerWrapper - Interface in com.github.fmjsjx.libnetty.http.server.middleware
 
AccessLogger.Slf4jLoggerWrapper - Class in com.github.fmjsjx.libnetty.http.server.middleware
 
AccessLogger.StderrLoggerWrapper - Class in com.github.fmjsjx.libnetty.http.server.middleware
 
AccessLogger.StdoutLoggerWrapper - Class in com.github.fmjsjx.libnetty.http.server.middleware
 
add(HttpServiceInvoker, String, HttpMethod...) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Add a new HTTP route with given parameters.
add(Middleware) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
add(String, HttpServiceInvoker) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Add a new "all method allowed" route with specified path and service.
add(String, Middleware) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
add(String, HttpMethod, HttpServiceInvoker) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Add a new HTTP route with given parameters.
add(Predicate<String>, Middleware) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
addFirst(Middleware) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
addFirst(String, Middleware) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
addFirst(Predicate<String>, Middleware) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
addHeaders(Consumer<HttpHeaders>) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the function to add HTTP response headers.
addHeaders(Consumer<HttpHeaders>) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Set the function set custom headers on response.
addHeaders(Consumer<HttpHeaders>, boolean) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the function to add HTTP response headers.
addLast(Middleware...) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
addLast(String, Middleware) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
addLast(Predicate<String>, Middleware) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
address() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Returns the network address to which the server should bind.
address(InetAddress) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the network address to which the server should bind
alloc() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Return the assigned ByteBufAllocator which will be used to allocate ByteBufs.
any() - Static method in interface com.github.fmjsjx.libnetty.http.server.middleware.MethodMatcher
Returns the singleton matcher MethodMatcher.ANY_METHOD.
ANY_METHOD - Static variable in interface com.github.fmjsjx.libnetty.http.server.middleware.MethodMatcher
Matches any method.
apply(HttpRequestContext) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServiceInvoker
Applies this function to the given context.
apply(HttpRequestContext) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.MiddlewareChain
Applies this MiddlewareChain to the given HttpRequestContext.
apply(HttpRequestContext, MiddlewareChain) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger
 
apply(HttpRequestContext, MiddlewareChain) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.AuthBasic
 
apply(HttpRequestContext, MiddlewareChain) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.Middleware
Apply this Middleware to the given HttpRequestContext.
apply(HttpRequestContext, MiddlewareChain) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.PathFilterMiddleware
 
apply(HttpRequestContext, MiddlewareChain) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.RequestValidator
 
apply(HttpRequestContext, MiddlewareChain) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
 
apply(HttpRequestContext, MiddlewareChain) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic
 
apply(HttpRequestContext, MiddlewareChain) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.SupportJson
Deprecated.
 
applyCompressionSettings(Consumer<HttpContentCompressorFactory.Builder>) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Enable HTTP content compression feature and apply compression settings.
AuthBasic - Class in com.github.fmjsjx.libnetty.http.server.middleware
A Middleware allows limiting access to resources by validating the user name and password using the "HTTP Basic Authentication" protocol.
AuthBasic(BiPredicate<String, String>, String) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AuthBasic
Constructs a new AuthBasic with the specified validator and realm.
AuthBasic(Map<String, String>, String) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AuthBasic
Constructs a new AuthBasic with the specified users and realm.
AuthBasic.BasicUser - Class in com.github.fmjsjx.libnetty.http.server.middleware
A HttpServer.User holding the username parsed from the "HTTP Basic Authentication" protocol.
AutoReadNextHandler - Class in com.github.fmjsjx.libnetty.http.server
A special ChannelOutboundHandler which support the AUTO_READ feature for kept alive Channels which just send a FullHttpResponse to client.
AutoReadNextHandler() - Constructor for class com.github.fmjsjx.libnetty.http.server.AutoReadNextHandler
 

B

BadRequestException - Exception in com.github.fmjsjx.libnetty.http.server.exception
HTTP exception for 404 Bad Request.
BadRequestException(Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.BadRequestException
Constructs a new HTTP bad request exception with the specified cause.
BASIC - com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
Basic log output.
BASIC - Static variable in interface com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.EtagGenerator
The basic generator.
BASIC2 - com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
Another basic log output, make result length human readable.
BasicUser(String) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AuthBasic.BasicUser
Constructs a new AuthBasic.BasicUser instance with the specified username.
body() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the content body of the HTTP request.
build(String) - Static method in interface com.github.fmjsjx.libnetty.http.server.PathPattern
Build a new PathPattern from HTTP path pattern.
build(String) - Static method in class com.github.fmjsjx.libnetty.http.server.PathPatternUtil
Build a new PathPattern from HTTP path pattern.
build(String, boolean) - Static method in class com.github.fmjsjx.libnetty.http.server.PathPatternUtil
Build a new PathPattern from HTTP path pattern.

C

cacheControl(String) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Set cacheControl.
channel() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
 
channel() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the Channel which is bound to the HttpRequestContext.
channel() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServer
Returns the binding ServerChannel.
channelRead0(ChannelHandlerContext, HttpRequestContext) - Method in class com.github.fmjsjx.libnetty.http.server.HttpRequestContextHandler
 
childOption(ChannelOption<T>, T) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Allow to specify a ChannelOption which is used for the Channel instances once they get created (after the acceptor accepted the Channel).
close() - Method in interface com.github.fmjsjx.libnetty.http.server.component.HttpServerComponent
Closes this HttpServerComponent and releases any system resources associated with it.
close() - Method in interface com.github.fmjsjx.libnetty.http.server.component.WorkerPool
 
close() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
Close this provider and trigger DefaultHttpServerHandler.onServerClosed().
close() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServerHandlerProvider
Close this provider and releases any system resources associated with it.
close() - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.Middleware
Closes this Middleware and releases any system resources associated with it.
com.github.fmjsjx.libnetty.http.server - package com.github.fmjsjx.libnetty.http.server
 
com.github.fmjsjx.libnetty.http.server.annotation - package com.github.fmjsjx.libnetty.http.server.annotation
 
com.github.fmjsjx.libnetty.http.server.component - package com.github.fmjsjx.libnetty.http.server.component
 
com.github.fmjsjx.libnetty.http.server.exception - package com.github.fmjsjx.libnetty.http.server.exception
 
com.github.fmjsjx.libnetty.http.server.middleware - package com.github.fmjsjx.libnetty.http.server.middleware
 
COMBINED - com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
Standard Apache combined log output.
COMMON - com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
Standard Apache common log output.
component(HttpServerComponent) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
component(Class<? extends C>) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the component with the specified componentType.
componentType() - Method in interface com.github.fmjsjx.libnetty.http.server.component.ExceptionHandler
 
componentType() - Method in interface com.github.fmjsjx.libnetty.http.server.component.HttpServerComponent
Returns the type of the component.
componentType() - Method in interface com.github.fmjsjx.libnetty.http.server.component.JsonLibrary
 
componentType() - Method in interface com.github.fmjsjx.libnetty.http.server.component.WorkerPool
 
ComponentValue - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation that indicates method parameter should be bound to some component value of the HTTP server.
CONNECT - com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
The CONNECT method.
content() - Method in exception com.github.fmjsjx.libnetty.http.server.exception.ManualHttpFailureException
Returns the response content string.
contentLength() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the length of the HTTP request body content.
contentType() - Method in exception com.github.fmjsjx.libnetty.http.server.exception.ManualHttpFailureException
Returns the response content type.
contentType() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the type of the HTTP request body content.
corsConfig(CorsConfig) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the CorsConfig of this server.
create(HttpResponseStatus) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext.HttpResponseFactory
Creates a new HttpResponse instance with the specified status.
createFull(HttpResponseStatus) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext.HttpResponseFactory
Creates a new FullHttpResponse instance with the specified status and EMPTY content.
createFull(HttpResponseStatus, ByteBuf, int, CharSequence) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext.HttpResponseFactory
Creates a new FullHttpResponse instance with the specified status and content.
createFull(HttpResponseStatus, ByteBuf, CharSequence) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext.HttpResponseFactory
Creates a new FullHttpResponse instance with the specified status and content.
createFullText(HttpResponseStatus) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext.HttpResponseFactory
Creates a new FullHttpResponse instance with the specified status and the content be same with status as text/plain.
createFullText(HttpResponseStatus, Charset) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext.HttpResponseFactory
Creates a new FullHttpResponse instance with the specified status and the content be same with status as text/plain.

D

defaultHandlerProvider() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Use and returns the DefaultHttpServerHandlerProvider for this server.
DefaultHttpResult - Class in com.github.fmjsjx.libnetty.http.server
Default implementation of HttpResult.
DefaultHttpResult(HttpRequestContext, long, HttpResponseStatus) - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpResult
Creates a new DefaultHttpResult instance with the specified params given.
DefaultHttpResult(HttpRequestContext, long, HttpResponseStatus, long, ZonedDateTime) - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpResult
Creates a new DefaultHttpResult instance with the specified params given.
DefaultHttpServer - Class in com.github.fmjsjx.libnetty.http.server
The default implementation of HttpServer.
DefaultHttpServer() - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Constructs a new DefaultHttpServer with the default HTTP port (80).
DefaultHttpServer(int) - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Constructs a new DefaultHttpServer with the specified port.
DefaultHttpServer(SslContextProvider) - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Constructs a new DefaultHttpServer with the specified sslContextProvider and default HTTPs port (443).
DefaultHttpServer(String) - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Constructs a new DefaultHttpServer with the specified name and default HTTP port (80).
DefaultHttpServer(String, int) - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Constructs a new DefaultHttpServer with the specified name and port.
DefaultHttpServer(String, SslContextProvider) - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Constructs a new DefaultHttpServer with the specified name, sslContextProvider and default HTTPs port (443).
DefaultHttpServer(String, SslContextProvider, int) - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Constructs a new DefaultHttpServer with the specified name, sslContextProvider and port.
DefaultHttpServerHandlerProvider - Class in com.github.fmjsjx.libnetty.http.server
The default implementation of HttpServerHandlerProvider.
DefaultHttpServerHandlerProvider() - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
defaultObjectMapper() - Static method in class com.github.fmjsjx.libnetty.http.server.component.Jackson2JsonLibrary
 
DefaultPathVariables - Class in com.github.fmjsjx.libnetty.http.server
The default implementation of PathVariables.
DefaultPathVariables() - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
Constructs a new DefaultPathVariables.
DefaultPathVariables(Map<String, String>) - Constructor for class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
Constructs a new DefaultPathVariables with the given map.
DefaultWorkerPool - Class in com.github.fmjsjx.libnetty.http.server.component
The default implementation of WorkerPool.
DefaultWorkerPool() - Constructor for class com.github.fmjsjx.libnetty.http.server.component.DefaultWorkerPool
 
DefaultWorkerPool(int) - Constructor for class com.github.fmjsjx.libnetty.http.server.component.DefaultWorkerPool
 
DefaultWorkerPool(int, int) - Constructor for class com.github.fmjsjx.libnetty.http.server.component.DefaultWorkerPool
 
DefaultWorkerPool(int, int, BlockingQueue<Runnable>) - Constructor for class com.github.fmjsjx.libnetty.http.server.component.DefaultWorkerPool
 
delete(String, HttpServiceInvoker) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Add a new HTTP DELETE route with specified path and service.
DELETE - com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
The DELETE method.
DEV - com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
Concise output colored by response status for development use.
disableSsl() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Disable SSL support.
doNext(HttpRequestContext) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.MiddlewareChain
Invoke the next Middleware in the chain.

E

empty() - Static method in interface com.github.fmjsjx.libnetty.http.server.PathVariables
Returns the empty PathVariables instances.
EMPTY - Static variable in interface com.github.fmjsjx.libnetty.http.server.PathVariables
Deprecated.
please use PathVariables.empty() instead since 2.0
enableSsl(SslContextProvider) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Enable SSL support and set the SslContextProvider.
eq(HttpMethod) - Static method in interface com.github.fmjsjx.libnetty.http.server.middleware.MethodMatcher
Returns a matcher that checks if the specified method and coming method is equal.
etag(boolean) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Set if E-TAG is enabled or not.
etagGenerator(ServeStatic.EtagGenerator) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Set the function to generate E-TAGs.
eventLoop() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Return the EventLoop this Channel was registered to.
exceptionHandler(BiConsumer<ChannelHandlerContext, Throwable>) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
ExceptionHandler - Interface in com.github.fmjsjx.libnetty.http.server.component
Defines a handler to handle exceptions.
executor() - Method in class com.github.fmjsjx.libnetty.http.server.component.DefaultWorkerPool
 
executor() - Method in interface com.github.fmjsjx.libnetty.http.server.component.WorkerPool
Returns the executor.
executor() - Method in class com.github.fmjsjx.libnetty.http.server.component.WrappedWorkerPool
 
exists(String) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
 
exists(String) - Method in interface com.github.fmjsjx.libnetty.http.server.PathVariables
Returns if the path variable by the name given exists.

F

failureStatus() - Method in class com.github.fmjsjx.libnetty.http.server.middleware.RequestValidator
Returns the status when validation failed.
from(PathPattern) - Static method in interface com.github.fmjsjx.libnetty.http.server.middleware.PathMatcher
Returns a new PathMatcher from specified PathPattern.
fromPattern(String) - Static method in interface com.github.fmjsjx.libnetty.http.server.middleware.PathMatcher
Returns a new PathMatcher from specified path pattern
FunctionalLoggerWrapper(Consumer<String>) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.FunctionalLoggerWrapper
 
FunctionalLoggerWrapper(Consumer<String>, BooleanSupplier) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.FunctionalLoggerWrapper
 

G

generate(Path, BasicFileAttributes) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.EtagGenerator
Generate the E-TAG.
get() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
get() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServerHandlerProvider
Returns a HttpServerHandler instance.
get(String, HttpServiceInvoker) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Add a new HTTP GET route with specified path and service.
GET - com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
The GET method.
getDouble(String) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
 
getDouble(String) - Method in interface com.github.fmjsjx.libnetty.http.server.PathVariables
Returns the path variable as double type by the name given.
getInstance() - Static method in class com.github.fmjsjx.libnetty.http.server.AutoReadNextHandler
Returns the singleton instance.
getInstance() - Static method in interface com.github.fmjsjx.libnetty.http.server.component.JsonLibrary
Returns the instance which implements the JsonLibrary.
getInstance() - Static method in class com.github.fmjsjx.libnetty.http.server.HstsHandler
Returns the singleton instance with default max-age.
getInstance() - Static method in class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.StderrLoggerWrapper
 
getInstance() - Static method in class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.StdoutLoggerWrapper
 
getInt(String) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
 
getInt(String) - Method in interface com.github.fmjsjx.libnetty.http.server.PathVariables
Returns the path variable as int type by the name given.
getLocalizedMessage() - Method in exception com.github.fmjsjx.libnetty.http.server.exception.HttpFailureException
 
getLocalizedMessage() - Method in exception com.github.fmjsjx.libnetty.http.server.exception.ManualHttpFailureException
 
getLong(String) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
 
getLong(String) - Method in interface com.github.fmjsjx.libnetty.http.server.PathVariables
Returns the path variable as long type by the name given.
getString(String) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
 
getString(String) - Method in interface com.github.fmjsjx.libnetty.http.server.PathVariables
Returns the path variable by the name given.

H

handle(HttpRequestContext, Throwable) - Method in interface com.github.fmjsjx.libnetty.http.server.component.ExceptionHandler
Handles the exception.
handle(HttpRequestContext, Throwable) - Method in class com.github.fmjsjx.libnetty.http.server.component.SimpleExceptionHandler
 
handle0(HttpRequestContext, E) - Method in class com.github.fmjsjx.libnetty.http.server.component.SimpleExceptionHandler
Is called for each exception for type SimpleExceptionHandler.
handler(HttpServerHandler) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the singleton HttpServerHandler of this server.
handlerProvider(HttpServerHandlerProvider) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the HttpServerHandlerProvider of this server.
hasProperty(Object) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns true if this HttpRequestContext contains a property with the specified key.
hasProperty(Object, Object) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns true if this HttpRequestContext contains a property with the specified key and value.
HEAD - com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
The HEAD method.
headers() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the headers of the HTTP request.
HeaderValue - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation that indicates method parameter should be bound to the HTTP header with the specified name.
host() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Returns the host name to which the server should bind.
host(String) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the host name to which the server should bind.
HstsHandler - Class in com.github.fmjsjx.libnetty.http.server
A special ChannelOutboundHandler which sets the HTTP Strict-Transport-Security header automatically.
HstsHandler() - Constructor for class com.github.fmjsjx.libnetty.http.server.HstsHandler
Constructs a new HstsHandler instance with default max-age (86400).
HstsHandler(long) - Constructor for class com.github.fmjsjx.libnetty.http.server.HstsHandler
Constructs a new HstsHandler instance with the specified maxAge.
HstsHandler(Duration) - Constructor for class com.github.fmjsjx.libnetty.http.server.HstsHandler
Constructs a new HstsHandler instance with the specified maxAge.
HttpConnect - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for mapping HTTP CONNECT requests onto specific handler methods.
HttpDelete - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for mapping HTTP DELETE requests onto specific handler methods.
HttpFailureException - Exception in com.github.fmjsjx.libnetty.http.server.exception
Abstract implementation of HttpRuntimeException with a HttpResponseStatus.
HttpFailureException(String) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.HttpFailureException
 
HttpFailureException(String, Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.HttpFailureException
 
HttpFailureException(Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.HttpFailureException
 
HttpGet - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for mapping HTTP GET requests onto specific handler methods.
HttpHead - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for mapping HTTP HEAD requests onto specific handler methods.
HttpMethodWrapper - Enum in com.github.fmjsjx.libnetty.http.server
Wrappers for HttpMethods.
HttpOptions - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for mapping HTTP OPTIONS requests onto specific handler methods.
HttpPatch - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for mapping HTTP PATCH requests onto specific handler methods.
HttpPath - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for path of HTTP services.
HttpPost - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for mapping HTTP POST requests onto specific handler methods.
HttpPut - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for mapping HTTP PUT requests onto specific handler methods.
HttpRequestContext - Interface in com.github.fmjsjx.libnetty.http.server
A context that runs through each HTTP requests.
HttpRequestContext.HttpResponseFactory - Interface in com.github.fmjsjx.libnetty.http.server
A factory to create HttpResponses.
HttpRequestContextHandler - Class in com.github.fmjsjx.libnetty.http.server
An abstract handler to handle HttpRequestContext messages.
HttpRequestContextHandler() - Constructor for class com.github.fmjsjx.libnetty.http.server.HttpRequestContextHandler
 
HttpResponder - Interface in com.github.fmjsjx.libnetty.http.server
Defines method to respond HttpResponses.
HttpResult - Interface in com.github.fmjsjx.libnetty.http.server
An operation result of HTTP.
HttpRoute - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for HTTP route.
HttpServer - Interface in com.github.fmjsjx.libnetty.http.server
An interface defines an HTTP server.
HttpServer.AbstractUser - Class in com.github.fmjsjx.libnetty.http.server
The abstract implementation of HttpServer.User.
HttpServer.User - Interface in com.github.fmjsjx.libnetty.http.server
An interface defines a user access to the HTTP server.
HttpServerComponent - Interface in com.github.fmjsjx.libnetty.http.server.component
Defines an interface of HTTP server components.
HttpServerHandler - Interface in com.github.fmjsjx.libnetty.http.server
An interface handles HTTP requests.
HttpServerHandlerProvider - Interface in com.github.fmjsjx.libnetty.http.server
HttpServiceInvoker - Interface in com.github.fmjsjx.libnetty.http.server
Represents a function that invokes an HTTP service.
HttpTrace - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation for mapping HTTP TRACE requests onto specific handler methods.

I

in(HttpMethod...) - Static method in interface com.github.fmjsjx.libnetty.http.server.middleware.MethodMatcher
Returns a matcher that checks if the coming method is equal to any one of the specified methods.
index(String) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Set index.
indexes(String...) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Set multiply indexes.
init() - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Initial this Router.
initialValue() - Method in class com.github.fmjsjx.libnetty.http.server.ThreadLocalMatcher
 
invoke(HttpRequestContext) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServiceInvoker
Invokes an HTTP service with given context.
ioThreads() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Returns the number of I/O threads to create for this server.
ioThreads(int) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the number of I/O threads to create for this server.
isEnabled() - Method in class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.FunctionalLoggerWrapper
 
isEnabled() - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LoggerWrapper
 
isKeepAlive() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns if the connection is keep-alive or not.
isRunning() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
 
isRunning() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServer
Returns if this server is running or not.
isSharable() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServerHandler
Return true if the implementation is ChannelHandler.Sharable and so can be added to different ChannelPipelines.
isSslEnabled() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
 
isSslEnabled() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServer
Returns whether to enable SSL support.

J

Jackson2JsonLibrary - Class in com.github.fmjsjx.libnetty.http.server.component
Implementation of JsonLibrary using jackson2.
Jackson2JsonLibrary() - Constructor for class com.github.fmjsjx.libnetty.http.server.component.Jackson2JsonLibrary
Constructs a new Jackson2JsonLibrary with the default ObjectMapper.
Jackson2JsonLibrary() - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.Jackson2JsonLibrary
Deprecated.
Constructs a new SupportJson.Jackson2JsonLibrary with the default ObjectMapper.
Jackson2JsonLibrary(ObjectMapper) - Constructor for class com.github.fmjsjx.libnetty.http.server.component.Jackson2JsonLibrary
Constructs a new Jackson2JsonLibrary with the specified ObjectMapper.
Jackson2JsonLibrary(ObjectMapper) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.Jackson2JsonLibrary
Deprecated.
Constructs a new SupportJson.Jackson2JsonLibrary with the specified ObjectMapper.
javaTimeModule() - Static method in class com.github.fmjsjx.libnetty.http.server.component.Jackson2JsonLibrary
 
javaTimeModuleEnabled() - Static method in class com.github.fmjsjx.libnetty.http.server.component.Jackson2JsonLibrary
 
jdk8Module() - Static method in class com.github.fmjsjx.libnetty.http.server.component.Jackson2JsonLibrary
 
jdk8ModuleEnabled() - Static method in class com.github.fmjsjx.libnetty.http.server.component.Jackson2JsonLibrary
 
JsonBody - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation that indicates a method return value or a method parameter should be bound to the HTTP body as type "application/json".
JsonException(String, Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.component.JsonLibrary.JsonException
Constructs a new JSON exception with the specified detail message and cause.
JsonException(String, Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.JsonException
Deprecated.
Constructs a new JSON exception with the specified detail message and cause.
JsonException(Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.component.JsonLibrary.JsonException
Constructs a new JSON exception with the specified cause.
JsonException(Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.JsonException
Deprecated.
Constructs a new JSON exception with the specified cause.
JsonLibrary - Interface in com.github.fmjsjx.libnetty.http.server.component
Provides methods to support JSON features.
JsonLibrary.JsonException - Exception in com.github.fmjsjx.libnetty.http.server.component
A runtime exception threw by a JSON encoder/decoder.

K

KEY - Static variable in interface com.github.fmjsjx.libnetty.http.server.HttpServer.User
The key of the HttpServer.User used in HTTP request context properties.
KEY - Static variable in interface com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.JsonLibrary
Deprecated.
The key of the SupportJson.JsonLibrary used in HTTP request context properties.

L

lastChain(MiddlewareChain) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServerHandlerProvider
 
lastModified(boolean) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Set if header last-modified is enabled or not.
log(String) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.FunctionalLoggerWrapper
 
log(String) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LoggerWrapper
 

M

ManualHttpFailureException - Exception in com.github.fmjsjx.libnetty.http.server.exception
An HttpFailureException with manual response contents.
ManualHttpFailureException(HttpResponseStatus, String, CharSequence, String) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.ManualHttpFailureException
Constructs a new ManualHttpFailureException with the specified status, content, contentType and message.
ManualHttpFailureException(HttpResponseStatus, String, CharSequence, Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.ManualHttpFailureException
Constructs a new ManualHttpFailureException with the specified status, content, contentType and cause.
matcher() - Method in class com.github.fmjsjx.libnetty.http.server.ThreadLocalMatcher
Returns the thread-local matcher.
matcher(String) - Method in interface com.github.fmjsjx.libnetty.http.server.PathPattern
Returns a matcher that will match the given path against this pattern.
matches(HttpRequestContext) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.MethodMatcher
Check if the method of the specified HttpRequestContext matches this matcher or not.
matches(HttpRequestContext) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.PathMatcher
Check if the path of the specified HttpRequestContext matches this matcher or not.
matches(HttpMethod) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.MethodMatcher
Check if the specified method matches this matcher or not.
maxContentLength() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Returns the maximum length of HTTP content.
maxContentLength(int) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the maximum length of HTTP content.
messageReceived(ChannelHandlerContext, HttpRequestContext) - Method in class com.github.fmjsjx.libnetty.http.server.HttpRequestContextHandler
 
method() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpRoute
Returns the methods of this route.
method() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the method of the HTTP request.
MethodMatcher - Interface in com.github.fmjsjx.libnetty.http.server.middleware
An interface defines matching methods for HTTP method.
Middleware - Interface in com.github.fmjsjx.libnetty.http.server.middleware
An interface defines functions which will be applied in HTTP request-response cycle.
MiddlewareChain - Interface in com.github.fmjsjx.libnetty.http.server.middleware
A MiddlewareChain is an object giving a view into the invocation chain of an HTTP request.
MiddlewareChains - Class in com.github.fmjsjx.libnetty.http.server.middleware
Implementations of MiddlewareChain.
MimeTypeUtil - Class in com.github.fmjsjx.libnetty.http.server
Utility class for mime type.

N

name() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
 
name() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServer
Returns the display name of this server.
name(String) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the name of this server.
names() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
 
names() - Method in interface com.github.fmjsjx.libnetty.http.server.PathVariables
Returns a collection contains of the names of all path variables.
nanoUsed() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResult
Returns the time between the request coming and when the response has finished being written out to the connection, in nanoseconds.
neverTimeout() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Let connections never timeout.
next(Middleware, MiddlewareChain) - Static method in class com.github.fmjsjx.libnetty.http.server.middleware.MiddlewareChains
Creates and returns a new MiddlewareChain for common usage.
notFound() - Static method in class com.github.fmjsjx.libnetty.http.server.middleware.MiddlewareChains
Returns a singleton MiddlewareChain that always returns "404 Not Found".

O

onServerClosed() - Method in interface com.github.fmjsjx.libnetty.http.server.component.HttpServerComponent
This method will be invoked by framework when the HttpServer which this HttpServerComponent belongs to is just be closed.
onServerClosed() - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.Middleware
This method will be invoked by framework when the HttpServer which this Middleware belongs to is just be closed.
option(ChannelOption<T>, T) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Allow to specify a ChannelOption which is used for the Channel instances once they got created.
Options() - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
 
OPTIONS - com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
The OPTIONS method.

P

patch(String, HttpServiceInvoker) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Add a new HTTP PATCH route with specified path and service.
PATCH - com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
The PATCH method.
path() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the decoded path string of the HTTP request URI.
PathFilterMiddleware - Class in com.github.fmjsjx.libnetty.http.server.middleware
Delegating a Middleware with a path filter.
PathFilterMiddleware(Predicate<String>, Middleware) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.PathFilterMiddleware
Constructs a new PathFilterMiddleware with the specified pathFilter and delegated Middleware.
PathMatcher - Interface in com.github.fmjsjx.libnetty.http.server.middleware
An interface defines matching methods for HTTP path.
pathPattern() - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.PathMatcher
Returns the path pattern.
PathPattern - Interface in com.github.fmjsjx.libnetty.http.server
An interface defines methods for HTTP path pattern.
PathPatternUtil - Class in com.github.fmjsjx.libnetty.http.server
Utility class for HTTP path patterns.
PathVar - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation that indicates a parameter variable should be bound to an HTTP path variable.
pathVariableNames() - Method in interface com.github.fmjsjx.libnetty.http.server.PathPattern
Returns the list contains the names of path variables.
pathVariables() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the path variables.
pathVariables(PathVariables) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Set the path variables.
PathVariables - Interface in com.github.fmjsjx.libnetty.http.server
Provides methods to access path variables from an HTTP path.
pattern - Variable in class com.github.fmjsjx.libnetty.http.server.ThreadLocalMatcher
 
pattern() - Method in interface com.github.fmjsjx.libnetty.http.server.PathPattern
Returns the compiled representation of a regular expression.
pattern() - Method in class com.github.fmjsjx.libnetty.http.server.ThreadLocalMatcher
Return the pattern that create matchers.
port() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Returns the listening port of this server.
port(int) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the listening port of this server.
post(String, HttpServiceInvoker) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Add a new HTTP POST route with specified path and service.
POST - com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
The POST method.
probeContentType(Path) - Static method in class com.github.fmjsjx.libnetty.http.server.MimeTypeUtil
Probes the content type of a file.
property(Class<T>) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the property value as parameterized type.
property(Object) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the property value as parameterized type.
property(Object, Class<T>) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the property value as parameterized type.
property(Object, Object) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Set the property value with the specified key, or remove the value with specified key by input null parameter.
propertyKeyNames() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns a Stream contains the key name of each property in thie HttpRequestContext.
propertyKeys() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Deprecated.
PropertyValue - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation that indicates method parameter should be bound to some property value of the request context.
put(String, HttpServiceInvoker) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Add a new HTTP PUT route with specified path and service.
put(String, String) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
Puts a path variable by the specified name and value.
PUT - com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
The PUT method.

Q

queryParameter(String) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the value of the specified name belongs to the decoded key-value parameter pairs of the HTTP request URI
queryParameters() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the decoded key-value parameter pairs of the HTTP request URI.
queryStringDecoder() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the QueryStringDecoder built from the HTTP request URI.
QueryVar - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation that indicates a parameter variable should be bound to an HTTP query parameter.

R

rawPath() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the raw path of the HTTP request URI.
rawQuery() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the raw query string of the HTTP request URI.
read(ByteBuf, Type) - Method in class com.github.fmjsjx.libnetty.http.server.component.Jackson2JsonLibrary
 
read(ByteBuf, Type) - Method in interface com.github.fmjsjx.libnetty.http.server.component.JsonLibrary
Read a JSON value from the given content.
read(ByteBuf, Type) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.Jackson2JsonLibrary
Deprecated.
 
read(ByteBuf, Type) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.JsonLibrary
Deprecated.
Read a JSON value from the given content.
READ_NEXT - Static variable in interface com.github.fmjsjx.libnetty.http.server.HttpServerHandler
A ChannelFutureListener that calls Channel.read() of the Channel which is associated with the specified ChannelFuture.
receivedLocalTime() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the LocalDateTime when the HTTP request just received.
receivedNanoTime() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the value of the running Java Virtual Machine'shigh-resolution time source, in nanoseconds, when the HTTP request just received.
receivedTime() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the ZonedDateTime with the system ZoneId when the HTTP request just received.
receivedTime(ZoneId) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the ZonedDateTime with the specified ZoneId when the HTTP request just received.
redirectDirectory(boolean) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Set if redirect to trailing "/" when the pathname is a directory or not.
refCnt() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
register(Router, Object) - Static method in class com.github.fmjsjx.libnetty.http.server.middleware.RouterUtil
Register the given controller to the specified router.
register(Router, T, Class<T>) - Static method in class com.github.fmjsjx.libnetty.http.server.middleware.RouterUtil
Register the given controller to the specified router.
register(Object) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Register a controller.
register(T, Class<T>) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.Router
Register a controller.
release() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
release(int) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
RemoteAddr - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation that indicates method parameter should be bound to the remote address (client IP).
remoteAddress() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the remote address (client IP) of this HttpRequestContext.
request() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the FullHttpRequest which is bound to the HttpRequestContext.
requestContext() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpResult
 
requestContext() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResult
Returns the context of the HTTP request.
RequestValidator - Class in com.github.fmjsjx.libnetty.http.server.middleware
A Middleware validates HTTP requests.
RequestValidator() - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.RequestValidator
 
RequestValidator(HttpResponseStatus) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.RequestValidator
 
required() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.ComponentValue
Returns whether the component value is required.
required() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HeaderValue
Returns whether the header is required.
required() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.PropertyValue
Returns whether the property value is required.
required() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.QueryVar
Returns whether the path variable is required.
reset() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Reset all settings of this server.
reset(CharSequence) - Method in class com.github.fmjsjx.libnetty.http.server.ThreadLocalMatcher
Resets the thread-local matcher with a new input sequence.
respondBadRequestError(Throwable) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
respondBadRequestError(Throwable) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Send HTTP response with "400 Bad Request Error" to client and returns the HttpResult asynchronously.
respondedNaonTime() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpResult
 
respondedNaonTime() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResult
Returns the value of the running Java Virtual Machine'shigh-resolution time source, in nanoseconds, when the HTTP response just responded.
respondedTime() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpResult
 
respondedTime() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResult
Returns the ZonedDateTime with the system ZoneId when the HTTP response just responded.
respondedTime(ZoneId) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResult
Returns the ZonedDateTime with the specified ZoneId when the HTTP response just responded.
respondError(Throwable) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
respondError(Throwable) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Respond HTTP error response to client and returns the HttpResult asynchronously.
respondInternalServerError(Throwable) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
respondInternalServerError(Throwable) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Send HTTP response with "500 Internal Server Error" to client and returns the HttpResult asynchronously.
responseFactory() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the factory creates HttpResponses.
responseStatus() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpResult
 
responseStatus() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResult
Returns the status of the HTTP response.
resultLength() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpResult
 
resultLength() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResult
Returns the length of the HTTP response content.
retain() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
retain(int) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
Router - Class in com.github.fmjsjx.libnetty.http.server.middleware
A Middleware routing requests.
Router() - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.Router
 
RouterUtil - Class in com.github.fmjsjx.libnetty.http.server.middleware
Utility class for HTTP controller beans.
RouterUtil() - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.RouterUtil
 

S

sendRedirect(CharSequence) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
sendRedirect(CharSequence) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Send HTTP response with "302 Found" to client and returns the HttpResult asynchronously.
sendRedirect(CharSequence, Consumer<HttpHeaders>) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
sendRedirect(CharSequence, Consumer<HttpHeaders>) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Send HTTP response with "302 Found" to client and returns the HttpResult asynchronously.
sendResponse(FullHttpResponse) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
sendResponse(FullHttpResponse) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Send HTTP response to client and returns the HttpResultasynchronously.
sendResponse(FullHttpResponse, int) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
sendResponse(FullHttpResponse, int) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Send HTTP response to client and returns the HttpResultasynchronously.
ServeStatic - Class in com.github.fmjsjx.libnetty.http.server.middleware
A Middleware serves static resources.
ServeStatic(ServeStatic.Options, String...) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic
Constructs a new ServeStatic with the multiply locationMappings and the specified ServeStatic.Options.
ServeStatic(String, String) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic
Constructs a new ServeStatic with the specified path and locationMapping.
ServeStatic(String, String, ServeStatic.Options) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic
Constructs a new ServeStatic with the specified path, locationMapping and ServeStatic.Options.
ServeStatic(String, String, String, String, ServeStatic.Options) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic
Constructs a new ServeStatic with the multiply paths, locationMappings and the specified ServeStatic.Options.
ServeStatic(LinkedHashMap<String, String>, ServeStatic.Options) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic
Constructs a new ServeStatic with the multiply locationMappings and the specified ServeStatic.Options.
ServeStatic.EtagGenerator - Interface in com.github.fmjsjx.libnetty.http.server.middleware
Function to generates E-TAGs.
ServeStatic.Options - Class in com.github.fmjsjx.libnetty.http.server.middleware
The options of ServeStatic.
SHORT - com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
Shorter than default, also including response time.
showHidden() - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Allow clients to access hidden files.
showHidden(boolean) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
Set if clients are allowed to access hidden files.
shutdown() - Method in class com.github.fmjsjx.libnetty.http.server.component.DefaultWorkerPool
 
shutdown() - Method in interface com.github.fmjsjx.libnetty.http.server.component.WorkerPool
Shutdown this worker pool.
shutdown() - Method in class com.github.fmjsjx.libnetty.http.server.component.WrappedWorkerPool
 
shutdown() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
 
shutdown() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServer
Shut down this server.
simple(Predicate<HttpRequestContext>) - Static method in class com.github.fmjsjx.libnetty.http.server.middleware.RequestValidator
Returns a new RequestValidator instance using the specified validation function.
simple(Predicate<HttpRequestContext>, HttpResponseStatus) - Static method in class com.github.fmjsjx.libnetty.http.server.middleware.RequestValidator
Returns a new RequestValidator instance using the specified validation function.
SimpleExceptionHandler<E extends java.lang.Throwable> - Class in com.github.fmjsjx.libnetty.http.server.component
The abstract implementation of ExceptionHandler which allows to explicit only handle a specific type of exceptions.
SimpleExceptionHandler() - Constructor for class com.github.fmjsjx.libnetty.http.server.component.SimpleExceptionHandler
 
SimpleExceptionHandler(Class<? extends E>) - Constructor for class com.github.fmjsjx.libnetty.http.server.component.SimpleExceptionHandler
 
SimpleHttpFailureException - Exception in com.github.fmjsjx.libnetty.http.server.exception
The default implementation of HttpFailureException.
SimpleHttpFailureException(HttpResponseStatus, String) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.SimpleHttpFailureException
Constructs a new SimpleHttpFailureException instance with the specified status and message.
SimpleHttpFailureException(HttpResponseStatus, String, Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.SimpleHttpFailureException
Constructs a new SimpleHttpFailureException instance with the specified status, message and cause.
SimpleHttpFailureException(String) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.SimpleHttpFailureException
Constructs a new SimpleHttpFailureException instance with the status "500 Internal Server Error" and the specified message.
SimpleHttpFailureException(String, Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.SimpleHttpFailureException
Constructs a new SimpleHttpFailureException instance with the status "500 Internal Server Error" and the specified message and cause.
SimpleHttpFailureException(Throwable) - Constructor for exception com.github.fmjsjx.libnetty.http.server.exception.SimpleHttpFailureException
Constructs a new SimpleHttpFailureException instance with the status "500 Internal Server Error" and the specified cause.
simpleRespond(HttpFailureException) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
simpleRespond(HttpFailureException) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Respond a simple HTTP response with error message content to client and returns the HttpResult asynchronously.
simpleRespond(HttpResponseStatus) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
simpleRespond(HttpResponseStatus) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Respond a simple HTTP response without content to client and returns the HttpResult asynchronously.
simpleRespond(HttpResponseStatus, ByteBuf, int, CharSequence) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
simpleRespond(HttpResponseStatus, ByteBuf, int, CharSequence) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Respond a simple HTTP response with the specified content to client and returns the HttpResult asynchronously.
simpleRespond(HttpResponseStatus, ByteBuf, CharSequence) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
simpleRespond(HttpResponseStatus, ByteBuf, CharSequence) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Respond a simple HTTP response with the specified content to client and returns the HttpResult asynchronously.
simpleRespond(HttpResponseStatus, Consumer<HttpHeaders>) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
simpleRespond(HttpResponseStatus, Consumer<HttpHeaders>) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResponder
Respond a simple HTTP response without content to client and returns the HttpResult asynchronously.
size() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultPathVariables
 
size() - Method in interface com.github.fmjsjx.libnetty.http.server.PathVariables
Returns the size of the path variables.
Slf4jLoggerWrapper(String) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.Slf4jLoggerWrapper
 
Slf4jLoggerWrapper(String, Level) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.Slf4jLoggerWrapper
 
Slf4jLoggerWrapper(Logger) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.Slf4jLoggerWrapper
 
Slf4jLoggerWrapper(Logger, Level) - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.Slf4jLoggerWrapper
 
soBackLog(int) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set SO_BACKLOG.
startup() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
 
startup() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServer
Start up this server.
status() - Method in exception com.github.fmjsjx.libnetty.http.server.exception.BadRequestException
 
status() - Method in exception com.github.fmjsjx.libnetty.http.server.exception.HttpFailureException
Returns the failure status.
status() - Method in exception com.github.fmjsjx.libnetty.http.server.exception.ManualHttpFailureException
 
status() - Method in exception com.github.fmjsjx.libnetty.http.server.exception.SimpleHttpFailureException
 
StderrLoggerWrapper() - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.StderrLoggerWrapper
 
StdoutLoggerWrapper() - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.StdoutLoggerWrapper
 
StringBody - Annotation Type in com.github.fmjsjx.libnetty.http.server.annotation
Annotation that indicates a method return value or a method parameter should be bound to the HTTP body as type "text/plain".
supportJson() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Support JSON features.
SupportJson - Class in com.github.fmjsjx.libnetty.http.server.middleware
Deprecated.
SupportJson() - Constructor for class com.github.fmjsjx.libnetty.http.server.middleware.SupportJson
Deprecated.
 
SupportJson.Jackson2JsonLibrary - Class in com.github.fmjsjx.libnetty.http.server.middleware
Deprecated.
please use Jackson2JsonLibrary instead
SupportJson.JsonException - Exception in com.github.fmjsjx.libnetty.http.server.middleware
Deprecated.
please use JsonLibrary.JsonException instead
SupportJson.JsonLibrary - Interface in com.github.fmjsjx.libnetty.http.server.middleware
Deprecated.
please use JsonLibrary instead

T

tcpNoDelay() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Enable TCP_NODELAY (disable/enable Nagle's algorithm).
test(HttpMethod) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.MethodMatcher
Evaluates this predicate on the specified method.
TEXT_PLAIN_UTF8 - Static variable in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
"text/plain; charset=UTF-8"
ThreadLocalMatcher - Class in com.github.fmjsjx.libnetty.http.server
Provides a thread-local variables of Matchers.
ThreadLocalMatcher(Pattern) - Constructor for class com.github.fmjsjx.libnetty.http.server.ThreadLocalMatcher
Construct a new ThreadLocalMatcher instance with the specified pattern.
timeout(Duration) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the time that connectors wait for another HTTP request before closing the connection.
timeoutSeconds() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Returns the time in seconds that connectors wait for another HTTP request before closing the connection.
timeoutSeconds(int) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Set the time in seconds that connectors wait for another HTTP request before closing the connection.
timeUsed(TimeUnit) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpResult
Returns the time between the request coming and when the response has finished being written out to the connection, in specified time unit.
TINY - com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
The minimal output.
toFilter(String...) - Static method in class com.github.fmjsjx.libnetty.http.server.middleware.PathFilterMiddleware
Convert path prefixes to path filter.
toString() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpResult
 
toString() - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
 
toString() - Method in class com.github.fmjsjx.libnetty.http.server.HttpServer.AbstractUser
 
toString() - Method in enum com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
 
toString() - Method in class com.github.fmjsjx.libnetty.http.server.middleware.AuthBasic
 
toString() - Method in class com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.Options
 
touch() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
touch(Object) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
 
TRACE - com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
The TRACE method.
trailingHeaders() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the trailing headers of the HTTP request.
transport(EventLoopGroup, EventLoopGroup, Class<? extends ServerChannel>) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Specify the transport components of this server.
transport(EventLoopGroup, Class<? extends ServerChannel>) - Method in class com.github.fmjsjx.libnetty.http.server.DefaultHttpServer
Specify the transport components of this server.

U

uri() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the uri of the HTTP request.
user() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the HttpServer.User.
user(Class<U>) - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the HttpServer.User.
username() - Method in class com.github.fmjsjx.libnetty.http.server.HttpServer.AbstractUser
 
username() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpServer.User
Returns the username of this user.

V

validate(HttpRequestContext) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.RequestValidator
Validate the HttpRequestContext.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.ComponentValue
Returns the type of the component.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HeaderValue
Returns the name of the value in HTTP header.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpConnect
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpDelete
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpGet
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpHead
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpOptions
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpPatch
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpPath
Returns the value string of the path.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpPost
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpPut
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpRoute
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.HttpTrace
Returns the path pattern of this route.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.PathVar
Returns the name of the path variable.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.PropertyValue
Returns the property key string.
value() - Method in annotation type com.github.fmjsjx.libnetty.http.server.annotation.QueryVar
Returns the name of the path variable.
valueOf(String) - Static method in enum com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.fmjsjx.libnetty.http.server.middleware.AccessLogger.LogFormat
Returns an array containing the constants of this enum type, in the order they are declared.
version() - Method in interface com.github.fmjsjx.libnetty.http.server.HttpRequestContext
Returns the protocol version of the HTTP request.

W

week() - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.ServeStatic.EtagGenerator
Returns true if is weak validator, otherwise false
WorkerPool - Interface in com.github.fmjsjx.libnetty.http.server.component
Provides a worker thread pool.
wrapped() - Method in enum com.github.fmjsjx.libnetty.http.server.HttpMethodWrapper
Returns the wrapped HttpMethod.
WrappedWorkerPool - Class in com.github.fmjsjx.libnetty.http.server.component
The wrapped implementation of WorkerPool.
WrappedWorkerPool(Executor) - Constructor for class com.github.fmjsjx.libnetty.http.server.component.WrappedWorkerPool
Constructs a new WrappedWorkerPool with the specified wrapped executor.
WrappedWorkerPool(Executor, boolean) - Constructor for class com.github.fmjsjx.libnetty.http.server.component.WrappedWorkerPool
Constructs a new WrappedWorkerPool with the specified wrapped executor.
write(ByteBufAllocator, Object) - Method in class com.github.fmjsjx.libnetty.http.server.component.Jackson2JsonLibrary
 
write(ByteBufAllocator, Object) - Method in interface com.github.fmjsjx.libnetty.http.server.component.JsonLibrary
Write a JSON value into the a ByteBuf.
write(ByteBufAllocator, Object) - Method in class com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.Jackson2JsonLibrary
Deprecated.
 
write(ByteBufAllocator, Object) - Method in interface com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.JsonLibrary
Deprecated.
Write a JSON value into the a ByteBuf.
write(ChannelHandlerContext, Object, ChannelPromise) - Method in class com.github.fmjsjx.libnetty.http.server.AutoReadNextHandler
 
write(ChannelHandlerContext, Object, ChannelPromise) - Method in class com.github.fmjsjx.libnetty.http.server.HstsHandler
 
A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes All Packages