Package | Description |
---|---|
ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
Modifier and Type | Method and Description |
---|---|
GroovyByContentSpec |
GroovyByContentSpec.html(Closure<?> closure)
Specifies that the given action should be used if the client wants content of type "text/html".
|
GroovyByContentSpec |
GroovyByContentSpec.json(Closure<?> closure)
Specifies that the given action should be used if the client wants content of type "application/json".
|
GroovyByContentSpec |
GroovyByContentSpec.noMatch(Closure<?> closure)
Specifies that the given action should be used if the client's requested content type cannot be matched with any of the other handlers.
|
GroovyByContentSpec |
GroovyByContentSpec.plainText(Closure<?> closure)
Specifies that the given action should be used if the client wants content of type "text/plain".
|
GroovyByContentSpec |
GroovyByContentSpec.type(String mimeType,
Closure<?> closure)
Specifies that the given action should be used if the client wants content of the given MIME type.
|
GroovyByContentSpec |
GroovyByContentSpec.xml(Closure<?> closure)
Specifies that the given action should be used if the client wants content of type "application/xml".
|