Skip navigation links
A C D E F G H J O P R W 

A

AcceptedResponse() - Method in interface org.dmonix.servlet.ResponseBuilder
Creates an empty response with only 202 - Accepted
addHeader(String, String) - Method in class org.dmonix.servlet.Response
Add a header to put into the HTTP response.

C

CreatedResponse() - Method in interface org.dmonix.servlet.ResponseBuilder
Creates an empty response with only 201 - Created

D

delete(Request) - Method in class org.dmonix.servlet.JSONServlet
Implements the DELETE method.
doDelete(HttpServletRequest, HttpServletResponse) - Method in class org.dmonix.servlet.JSONServlet
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.dmonix.servlet.JSONServlet
 
doOptions(HttpServletRequest, HttpServletResponse) - Method in class org.dmonix.servlet.JSONServlet
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.dmonix.servlet.JSONServlet
 
doPut(HttpServletRequest, HttpServletResponse) - Method in class org.dmonix.servlet.JSONServlet
 

E

EmptyResponse(int) - Method in interface org.dmonix.servlet.ResponseBuilder
Creates an empty response with only a response code
ErrorResponse(Throwable) - Method in interface org.dmonix.servlet.ResponseBuilder
Creates an error response with a internal error code.
ErrorResponse(int, String) - Method in interface org.dmonix.servlet.ResponseBuilder
Creates an error with a provided error code
ErrorResponseMissingPath() - Method in interface org.dmonix.servlet.ResponseBuilder
Creates an error with code 400 and the message that the path is missing
ErrorResponseNotFound(String) - Method in interface org.dmonix.servlet.ResponseBuilder
Creates an error with a 404 - Not found
ErrorResponseResourceAlreadyExists(String) - Method in interface org.dmonix.servlet.ResponseBuilder
Creates an error with code 403 and the message that the path already exists.
ErrorResponseUnsupportedOperation() - Method in interface org.dmonix.servlet.ResponseBuilder
Creates an error with code 405 stating the operation is not supported.

F

fromJson(Class<T>) - Method in class org.dmonix.servlet.Request
Parses an object from the json stream in the HTTP request
fromJson(String, Class<T>) - Method in class org.dmonix.servlet.Request
Parses an object from the json stream in the HTTP request
fromJson(HttpServletRequest, Class<T>) - Method in interface org.dmonix.servlet.RequestParser
Parses an object from the json stream in the HTTP request
fromJson(HttpServletRequest, String, Class<T>) - Method in interface org.dmonix.servlet.RequestParser
Parses an object from the json stream in the HTTP request

G

get(Request) - Method in class org.dmonix.servlet.JSONServlet
Implements the GET method.
getPathInfo() - Method in class org.dmonix.servlet.Request
Get the path info as specified in the URI.
getPathInfo(HttpServletRequest) - Method in interface org.dmonix.servlet.RequestParser
Get the path info as specified in the URI.
gson - Static variable in interface org.dmonix.servlet.ResponseBuilder
 

H

headers() - Method in class org.dmonix.servlet.Response
Get all the headers to use for the HTTP response.

J

JSONServlet - Class in org.dmonix.servlet
Extends the standard HttpServlet by providing a nicer way to read/write request/response data.
JSONServlet() - Constructor for class org.dmonix.servlet.JSONServlet
 

O

ObjectResponse(Object) - Method in interface org.dmonix.servlet.ResponseBuilder
Creates a response where the provided object will be converted to json.
ObjectResponse(Object, String) - Method in interface org.dmonix.servlet.ResponseBuilder
Creates a response where the provided object will be converted to json.
org.dmonix.servlet - package org.dmonix.servlet
Contains all classes related to the simple servlet framework

P

post(Request) - Method in class org.dmonix.servlet.JSONServlet
Implements the POST method.
put(Request) - Method in class org.dmonix.servlet.JSONServlet
Implements the PUT method.

R

Request - Class in org.dmonix.servlet
Wrapper for the HttpServletRequest class.
request() - Method in class org.dmonix.servlet.Request
Get the wrapped HttpServletRequest
RequestParser - Interface in org.dmonix.servlet
Utilities for parsing HTTP requests
Response - Class in org.dmonix.servlet
Response object containing the response to be sent to the client.
Response(int, String) - Constructor for class org.dmonix.servlet.Response
Creates an instance
ResponseBuilder - Interface in org.dmonix.servlet
Interface for building the response to be sent to the client.

W

writeResponse(HttpServletResponse, Try<Response>) - Method in interface org.dmonix.servlet.ResponseBuilder
Write the response to the client.
writeResponse(HttpServletResponse, Response) - Method in interface org.dmonix.servlet.ResponseBuilder
Write the response to the client.
A C D E F G H J O P R W 
Skip navigation links

Copyright © 2016, Peter Nerg Apache License v2.0