Package | Description |
---|---|
ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
ratpack.handling |
The handling of application requests.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyByContentSpec
Closure overloads of methods from
ByContentSpec . |
Modifier and Type | Method and Description |
---|---|
ByContentSpec |
ByContentSpec.html(Handler handler)
Specifies that the given handler should be used if the client wants content of type "text/html".
|
ByContentSpec |
ByContentSpec.html(NoArgAction handler)
Specifies that the given handler should be used if the client wants content of type "text/html".
|
ByContentSpec |
ByContentSpec.json(Handler handler)
Specifies that the given handler should be used if the client wants content of type "application/json".
|
ByContentSpec |
ByContentSpec.json(NoArgAction handler)
Specifies that the given handler should be used if the client wants content of type "application/json".
|
ByContentSpec |
ByContentSpec.noMatch(Handler handler)
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(NoArgAction handler)
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(Handler handler)
Specifies that the given handler should be used if the client wants content of type "text/plain".
|
ByContentSpec |
ByContentSpec.plainText(NoArgAction handler)
Specifies that the given handler should be used if the client wants content of type "text/plain".
|
ByContentSpec |
ByContentSpec.type(String mimeType,
Handler handler)
Specifies that the given handler should be used if the client wants content of the given MIME type.
|
ByContentSpec |
ByContentSpec.type(String mimeType,
NoArgAction handler)
Specifies that the given handler should be used if the client wants content of the given MIME type.
|
ByContentSpec |
ByContentSpec.xml(Handler handler)
Specifies that the given handler should be used if the client wants content of type "application/xml".
|
ByContentSpec |
ByContentSpec.xml(NoArgAction handler)
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.
|