Package com.yahoo.restapi
Interface RestApi.Builder
-
- Enclosing interface:
- RestApi
public static interface RestApi.Builder
-
-
Method Summary
-
-
-
Method Detail
-
setObjectMapper
RestApi.Builder setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
setDefaultRoute
RestApi.Builder setDefaultRoute(RestApi.RouteBuilder route)
-
addRoute
RestApi.Builder addRoute(RestApi.RouteBuilder route)
-
addFilter
RestApi.Builder addFilter(RestApi.Filter filter)
-
addExceptionMapper
<EXCEPTION extends RuntimeException> RestApi.Builder addExceptionMapper(Class<EXCEPTION> type, RestApi.ExceptionMapper<EXCEPTION> mapper)
seeRestApiMappers.DEFAULT_EXCEPTION_MAPPERS
for default mappers
-
addResponseMapper
<RESPONSE_ENTITY> RestApi.Builder addResponseMapper(Class<RESPONSE_ENTITY> type, RestApi.ResponseMapper<RESPONSE_ENTITY> mapper)
seeRestApiMappers.DEFAULT_RESPONSE_MAPPERS
for default mappers
-
addRequestMapper
<REQUEST_ENTITY> RestApi.Builder addRequestMapper(Class<REQUEST_ENTITY> type, RestApi.RequestMapper<REQUEST_ENTITY> mapper)
seeRestApiMappers.DEFAULT_REQUEST_MAPPERS
for default mappers
-
registerJacksonResponseEntity
<RESPONSE_ENTITY> RestApi.Builder registerJacksonResponseEntity(Class<RESPONSE_ENTITY> type)
-
registerJacksonRequestEntity
<REQUEST_ENTITY> RestApi.Builder registerJacksonRequestEntity(Class<REQUEST_ENTITY> type)
-
disableDefaultExceptionMappers
RestApi.Builder disableDefaultExceptionMappers()
Disables mappers listed inRestApiMappers.DEFAULT_EXCEPTION_MAPPERS
-
disableDefaultResponseMappers
RestApi.Builder disableDefaultResponseMappers()
Disables mappers listed inRestApiMappers.DEFAULT_RESPONSE_MAPPERS
-
disableDefaultAclMapping
RestApi.Builder disableDefaultAclMapping()
-
build
RestApi build()
-
-