Package | Description |
---|---|
ratpack.handling |
The handling of application requests.
|
Modifier and Type | Method and Description |
---|---|
ByContentSpec |
ByContentSpec.html(Block block)
Specifies that the given handler should be used if the client wants content of type "text/html".
|
ByContentSpec |
ByContentSpec.json(Block block)
Specifies that the given handler should be used if the client wants content of type "application/json".
|
ByContentSpec |
ByContentSpec.noMatch(Block block)
Specifies that the given handler should be used if the client's requested content type cannot be matched with any of the other handlers.
|
ByContentSpec |
ByContentSpec.noMatch(String mimeType)
Specifies that the handler for the specified content type should be used if the client's requested content type cannot be matched with any of the other handlers.
|
ByContentSpec |
ByContentSpec.plainText(Block block)
Specifies that the given handler should be used if the client wants content of type "text/plain".
|
ByContentSpec |
ByContentSpec.type(String mimeType,
Block block)
Specifies that the given handler should be used if the client wants content of the given MIME type.
|
ByContentSpec |
ByContentSpec.xml(Block block)
Specifies that the given handler should be used if the client wants content of type "application/xml".
|
Modifier and Type | Method and Description |
---|---|
void |
Context.byContent(Action<? super ByContentSpec> action)
Respond to the request based on the requested content type (i.e.
|