public interface HttpConfig
Provides the public interface used for the HttpBuilder
shared and per-verb configuration.
Modifier and Type | Interface and Description |
---|---|
static interface |
HttpConfig.Auth
Defines the configurable HTTP request authentication properties.
|
static class |
HttpConfig.AuthType
Defines the allowed values of the HTTP authentication type.
|
static interface |
HttpConfig.Request
Defines the configurable HTTP request properties.
|
static interface |
HttpConfig.Response
Defines the configurable HTTP response properties.
|
static class |
HttpConfig.Status
Defines the an enumeration of the overall HTTP response status categories.
|
Modifier and Type | Method and Description |
---|---|
default void |
context(java.lang.Iterable<java.lang.String> contentTypes,
java.lang.Object id,
java.lang.Object obj)
Used to register a content-type-scoped object on the context in the specified content-type scopes.
|
void |
context(java.lang.String contentType,
java.lang.Object id,
java.lang.Object obj)
Registers a context-level content-type specific object.
|
HttpConfig.Request |
getRequest()
Used to retrieve configuration information about the HTTP request.
|
HttpConfig.Response |
getResponse()
Used to retrieve configuration information about the HTTP response.
|
void context(java.lang.String contentType, java.lang.Object id, java.lang.Object obj)
Registers a context-level content-type specific object.
contentType
- the content type scope of the mappingid
- the mapping keyobj
- the mapping valuedefault void context(java.lang.Iterable<java.lang.String> contentTypes, java.lang.Object id, java.lang.Object obj)
Used to register a content-type-scoped object on the context in the specified content-type scopes.
contentTypes
- the content-types where the mapping is scopedid
- the mapping keyobj
- the mapping valueHttpConfig.Request getRequest()
Used to retrieve configuration information about the HTTP request.
HttpConfig.Response getResponse()
Used to retrieve configuration information about the HTTP response.