|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpServerConfigurator
The Server configuration. It has been designed as interface so users are free to implement their proxies on Properties, XML, JSON, YAML, ...
Method Summary | |
---|---|
void |
bindServerToHost(String host)
Configure the host name or the textual representation of its IP address the server has to be bound. |
void |
bindServerToPort(int port)
Configure the port number where binding the server. |
RequestHandlerBuilder |
serve(String path)
Starts binding a request path, can be expressed using the web.xml grammar,
to a RequestHandler . |
void |
serveRequestsWithThreads(int threads)
Configure the number of threads that will serve the HTTP requests. |
void |
sessionsHaveMagAge(int sessionMaxAge)
Configure the maximum number of seconds of life of HTTP Sessions. |
DefaultResponseBuilder |
when(Response.Status status)
Allows defining the default response has to be shown when replying to clients with specified status. |
Method Detail |
---|
void bindServerToHost(String host)
host
- the host name or the textual representation of its IP address.void bindServerToPort(int port)
port
- the port number where binding the server.void serveRequestsWithThreads(int threads)
threads
- the number of threads that will serve the HTTP requests.void sessionsHaveMagAge(int sessionMaxAge)
sessionMaxAge
- the maximum number of seconds of life of HTTP Sessions.RequestHandlerBuilder serve(String path)
web.xml
grammar,
to a RequestHandler
.
path
- the path for handling calls.
RequestDispatcher
DefaultResponseBuilder when(Response.Status status)
status
- the status the server is replying to clients
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |