Package com.yahoo.restapi
Interface RestApi
-
public interface RestApi
Rest API routing and response serialization- Author:
- bjorncs
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RestApi.Builder
static interface
RestApi.ExceptionMapper<EXCEPTION extends RuntimeException>
static interface
RestApi.Filter
static interface
RestApi.FilterContext
static interface
RestApi.Handler<RESPONSE_ENTITY>
static interface
RestApi.HandlerConfigBuilder
static interface
RestApi.HandlerWithRequestEntity<REQUEST_ENTITY,RESPONSE_ENTITY>
static interface
RestApi.RequestContext
static interface
RestApi.RequestMapper<REQUEST_ENTITY>
static interface
RestApi.ResponseMapper<RESPONSE_ENTITY>
static interface
RestApi.RouteBuilder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RestApi.Builder
builder()
static RestApi.HandlerConfigBuilder
handlerConfig()
HttpResponse
handleRequest(HttpRequest request)
com.fasterxml.jackson.databind.ObjectMapper
jacksonJsonMapper()
RequestHandlerSpec
requestHandlerSpec()
static RestApi.RouteBuilder
route(String pathPattern)
-
-
-
Method Detail
-
builder
static RestApi.Builder builder()
-
route
static RestApi.RouteBuilder route(String pathPattern)
-
handlerConfig
static RestApi.HandlerConfigBuilder handlerConfig()
-
handleRequest
HttpResponse handleRequest(HttpRequest request)
-
jacksonJsonMapper
com.fasterxml.jackson.databind.ObjectMapper jacksonJsonMapper()
-
requestHandlerSpec
RequestHandlerSpec requestHandlerSpec()
- See Also:
HttpRequestHandler.requestHandlerSpec()
-
-