Package | Description |
---|---|
ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultGroovyByContentSpec |
Modifier and Type | Method and Description |
---|---|
GroovyByContentSpec |
DefaultGroovyByContentSpec.html(Block block) |
GroovyByContentSpec |
GroovyByContentSpec.html(Block block)
Specifies that the given handler should be used if the client wants content of type "text/html".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.html(java.lang.Class<? extends Handler> handlerType) |
GroovyByContentSpec |
GroovyByContentSpec.html(java.lang.Class<? extends Handler> handlerType)
Specifies that the given handler should be used if the client wants content of type "text/html".
|
default GroovyByContentSpec |
GroovyByContentSpec.html(Closure<?> handler)
Specifies that the given handler should be used if the client wants content of type "text/html".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.html(Handler handler) |
GroovyByContentSpec |
GroovyByContentSpec.html(Handler handler)
Specifies that the given handler should be used if the client wants content of type "text/html".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.json(Block block) |
GroovyByContentSpec |
GroovyByContentSpec.json(Block block)
Specifies that the given handler should be used if the client wants content of type "application/json".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.json(java.lang.Class<? extends Handler> handlerType) |
GroovyByContentSpec |
GroovyByContentSpec.json(java.lang.Class<? extends Handler> handlerType)
Specifies that the given handler should be used if the client wants content of type "application/json".
|
default GroovyByContentSpec |
GroovyByContentSpec.json(Closure<?> handler)
Specifies that the given handler should be used if the client wants content of type "application/json".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.json(Handler handler) |
GroovyByContentSpec |
GroovyByContentSpec.json(Handler handler)
Specifies that the given handler should be used if the client wants content of type "application/json".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.noMatch(Block block) |
GroovyByContentSpec |
GroovyByContentSpec.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.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.noMatch(java.lang.Class<? extends Handler> handlerType) |
GroovyByContentSpec |
GroovyByContentSpec.noMatch(java.lang.Class<? extends Handler> handlerType)
Specifies that the given handler should be used if the client's requested content type cannot be matched with any of the other handlers.
|
default GroovyByContentSpec |
GroovyByContentSpec.noMatch(Closure<?> 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.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.noMatch(Handler handler) |
GroovyByContentSpec |
GroovyByContentSpec.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.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.noMatch(java.lang.String mimeType) |
GroovyByContentSpec |
GroovyByContentSpec.noMatch(java.lang.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.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.plainText(Block block) |
GroovyByContentSpec |
GroovyByContentSpec.plainText(Block block)
Specifies that the given handler should be used if the client wants content of type "text/plain".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.plainText(java.lang.Class<? extends Handler> handlerType) |
GroovyByContentSpec |
GroovyByContentSpec.plainText(java.lang.Class<? extends Handler> handlerType)
Specifies that the given handler should be used if the client wants content of type "text/plain".
|
default GroovyByContentSpec |
GroovyByContentSpec.plainText(Closure<?> handler)
Specifies that the given handler should be used if the client wants content of type "text/plain".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.plainText(Handler handler) |
GroovyByContentSpec |
GroovyByContentSpec.plainText(Handler handler)
Specifies that the given handler should be used if the client wants content of type "text/plain".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.type(java.lang.String mimeType,
Block block) |
GroovyByContentSpec |
GroovyByContentSpec.type(java.lang.String mimeType,
Block block)
Specifies that the given handler should be used if the client wants content of the given MIME type.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.type(java.lang.String mimeType,
java.lang.Class<? extends Handler> handlerType) |
GroovyByContentSpec |
GroovyByContentSpec.type(java.lang.String mimeType,
java.lang.Class<? extends Handler> handlerType)
Specifies that the given handler should be used if the client wants content of the given MIME type.
|
default GroovyByContentSpec |
GroovyByContentSpec.type(java.lang.String mimeType,
Closure<?> handler)
Specifies that the given handler should be used if the client wants content of the given MIME type.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.type(java.lang.String mimeType,
Handler handler) |
GroovyByContentSpec |
GroovyByContentSpec.type(java.lang.String mimeType,
Handler handler)
Specifies that the given handler should be used if the client wants content of the given MIME type.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.unspecified(Block block) |
GroovyByContentSpec |
GroovyByContentSpec.unspecified(Block block)
Specifies that the given handler should be used if the client did not provide a usable "Accept" header in the request.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.unspecified(java.lang.Class<? extends Handler> handlerType) |
GroovyByContentSpec |
GroovyByContentSpec.unspecified(java.lang.Class<? extends Handler> handlerType)
Specifies that the given handler should be used if the client did not provide a usable "Accept" header in the request.
|
default GroovyByContentSpec |
GroovyByContentSpec.unspecified(Closure<?> handler)
Specifies that the given handler should be used if the client did not provide a usable "Accept" header in the request.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.unspecified(Handler handler) |
GroovyByContentSpec |
GroovyByContentSpec.unspecified(Handler handler)
Specifies that the given handler should be used if the client did not provide a usable "Accept" header in the request.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.unspecified(java.lang.String mimeType) |
GroovyByContentSpec |
GroovyByContentSpec.unspecified(java.lang.String mimeType)
Specifies that the handler for the specified content type should be used if the client did not provide a usable "Accept" header in the request.
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.xml(Block block) |
GroovyByContentSpec |
GroovyByContentSpec.xml(Block block)
Specifies that the given handler should be used if the client wants content of type "application/xml".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.xml(java.lang.Class<? extends Handler> handlerType) |
GroovyByContentSpec |
GroovyByContentSpec.xml(java.lang.Class<? extends Handler> handlerType)
Specifies that the given handler should be used if the client wants content of type "application/xml".
|
default GroovyByContentSpec |
GroovyByContentSpec.xml(Closure<?> handler)
Specifies that the given handler should be used if the client wants content of type "application/xml".
|
GroovyByContentSpec |
DefaultGroovyByContentSpec.xml(Handler handler) |
GroovyByContentSpec |
GroovyByContentSpec.xml(Handler handler)
Specifies that the given handler should be used if the client wants content of type "application/xml".
|