Package | Description |
---|---|
ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
Modifier and Type | Class and Description |
---|---|
class |
GroovyChainAction
Convenient super class for packaging up Groovy handler chain logic.
|
Modifier and Type | Method and Description |
---|---|
GroovyChain |
GroovyChain.assets(String path,
String... indexFiles)
Adds a handler that serves static assets at the given file system path, relative to the contextual file system binding.
|
GroovyChain |
GroovyChainAction.assets(String path,
String... indexFiles) |
GroovyChain |
GroovyChain.delete(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is DELETE and the path is at the current root. |
GroovyChain |
GroovyChainAction.delete(Closure<?> handler) |
GroovyChain |
GroovyChain.delete(Handler handler)
Adds a handler that delegates to the given handler if
the
request HTTPMethod is DELETE and the path is at the current root. |
GroovyChain |
GroovyChainAction.delete(Handler handler) |
GroovyChain |
GroovyChain.delete(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is DELETE . |
GroovyChain |
GroovyChainAction.delete(String path,
Closure<?> handler) |
GroovyChain |
GroovyChain.delete(String path,
Handler handler)
Adds a handler that delegates to the given handler if
the relative
path matches the given path and the request HTTPMethod
is DELETE . |
GroovyChain |
GroovyChainAction.delete(String path,
Handler handler) |
GroovyChain |
GroovyChain.fileSystem(String path,
Action<? super Chain> action) |
GroovyChain |
GroovyChainAction.fileSystem(String path,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.fileSystem(String path,
Closure<?> handlers)
Creates a
List of Handler from the given Closure and adds a Handler to this GroovyChain that
changes the FileSystemBinding for the Handler list. |
GroovyChain |
GroovyChainAction.fileSystem(String path,
Closure<?> handlers) |
GroovyChain |
GroovyChain.fileSystem(String path,
Handler handler)
Adds a handler to this chain that changes the
FileSystemBinding for the given handler. |
GroovyChain |
GroovyChainAction.fileSystem(String path,
Handler handler) |
GroovyChain |
GroovyChain.get(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is GET and the path is at the current root. |
GroovyChain |
GroovyChainAction.get(Closure<?> handler) |
GroovyChain |
GroovyChain.get(Handler handler)
Adds a handler that delegates to the given handler
if the
request HTTPMethod is GET and the path is at the
current root. |
GroovyChain |
GroovyChainAction.get(Handler handler) |
GroovyChain |
GroovyChain.get(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is GET . |
GroovyChain |
GroovyChainAction.get(String path,
Closure<?> handler) |
GroovyChain |
GroovyChain.get(String path,
Handler handler)
Adds a handler that delegates to the given handler
if the relative
path matches the given path and the request
HTTPMethod is GET . |
GroovyChain |
GroovyChainAction.get(String path,
Handler handler) |
protected GroovyChain |
GroovyChainAction.getChain() |
GroovyChain |
GroovyChain.handler(Closure<?> handler)
Adds the given
Closure as a Handler to this GroovyChain . |
GroovyChain |
GroovyChainAction.handler(Closure<?> handler) |
GroovyChain |
GroovyChain.handler(Handler handler)
Adds the given handler to this.
|
GroovyChain |
GroovyChainAction.handler(Handler handler) |
GroovyChain |
GroovyChain.handler(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path exactly. |
GroovyChain |
GroovyChainAction.handler(String path,
Closure<?> handler) |
GroovyChain |
GroovyChain.handler(String path,
Handler handler)
Adds a handler that delegates to the given handler if the relative
path
matches the given path exactly. |
GroovyChain |
GroovyChainAction.handler(String path,
Handler handler) |
GroovyChain |
GroovyChain.header(String headerName,
String headerValue,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the request
has a HTTPHeader with the given name and a it's value matches the given value exactly. |
GroovyChain |
GroovyChainAction.header(String headerName,
String headerValue,
Closure<?> handler) |
GroovyChain |
GroovyChain.header(String headerName,
String headerValue,
Handler handler)
Adds a handler to the chain that delegates to the given handler if the request has a header with the given name and a its value matches the given value exactly.
|
GroovyChain |
GroovyChainAction.header(String headerName,
String headerValue,
Handler handler) |
GroovyChain |
GroovyChain.patch(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is PATCH and the path is at the current root. |
GroovyChain |
GroovyChainAction.patch(Closure<?> handler) |
GroovyChain |
GroovyChain.patch(Handler handler)
Adds a handler that delegates to the given handler if
the
request HTTPMethod is PATCH and the path is at the current root. |
GroovyChain |
GroovyChainAction.patch(Handler handler) |
GroovyChain |
GroovyChain.patch(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is PATCH . |
GroovyChain |
GroovyChainAction.patch(String path,
Closure<?> handler) |
GroovyChain |
GroovyChain.patch(String path,
Handler handler)
Adds a handler that delegates to the given handler if
the relative
path matches the given path and the request HTTPMethod
is PATCH . |
GroovyChain |
GroovyChainAction.patch(String path,
Handler handler) |
GroovyChain |
GroovyChain.post(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is POST and the path is at the current root. |
GroovyChain |
GroovyChainAction.post(Closure<?> handler) |
GroovyChain |
GroovyChain.post(Handler handler)
Adds a handler that delegates to the given handler if
the
request HTTPMethod is POST and the path is at the current root. |
GroovyChain |
GroovyChainAction.post(Handler handler) |
GroovyChain |
GroovyChain.post(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is POST . |
GroovyChain |
GroovyChainAction.post(String path,
Closure<?> handler) |
GroovyChain |
GroovyChain.post(String path,
Handler handler)
Adds a handler that delegates to the given handler if
the relative
path matches the given path and the request HTTPMethod
is POST . |
GroovyChain |
GroovyChainAction.post(String path,
Handler handler) |
GroovyChain |
GroovyChain.prefix(String prefix,
Action<? super Chain> action)
Adds a handler that delegates to the given handlers if the
relative path starts with the given
prefix . |
GroovyChain |
GroovyChainAction.prefix(String prefix,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.prefix(String prefix,
Closure<?> chain)
Creates a
List of Handler from the given Closure and adds a Handler to
this GroovyChain that delegates to the Handler list if the relative path starts with the given
prefix . |
GroovyChain |
GroovyChainAction.prefix(String prefix,
Closure<?> chain) |
GroovyChain |
GroovyChain.prefix(String prefix,
Handler handler)
Adds a handler that delegates to the given handler if the relative path starts with the given
prefix . |
GroovyChain |
GroovyChainAction.prefix(String prefix,
Handler handler) |
GroovyChain |
GroovyChain.put(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is PUT and the path is at the current root. |
GroovyChain |
GroovyChainAction.put(Closure<?> handler) |
GroovyChain |
GroovyChain.put(Handler handler)
Adds a handler that delegates to the given handler if
the
request HTTPMethod is PUT and the path is at the current root. |
GroovyChain |
GroovyChainAction.put(Handler handler) |
GroovyChain |
GroovyChain.put(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is PUT . |
GroovyChain |
GroovyChainAction.put(String path,
Closure<?> handler) |
GroovyChain |
GroovyChain.put(String path,
Handler handler)
Adds a handler that delegates to the given handler if
the relative
path matches the given path and the request HTTPMethod
is PUT . |
GroovyChain |
GroovyChainAction.put(String path,
Handler handler) |
<T> GroovyChain |
GroovyChain.register(Class<? super T> type,
T service,
Action<? super Chain> action) |
<T> GroovyChain |
GroovyChainAction.register(Class<? super T> type,
T service,
Action<? super Chain> action) |
<T> GroovyChain |
GroovyChain.register(Class<? super T> type,
T service,
Closure<?> handlers)
Creates a
List of Handler from the given Closure and adds a Handler to this GroovyChain that
inserts the the Handler list with the given service addition. |
<T> GroovyChain |
GroovyChainAction.register(Class<? super T> type,
T service,
Closure<?> handlers) |
<T> GroovyChain |
GroovyChain.register(Class<? super T> type,
T object,
Handler handler)
Adds a handler that inserts the given handlers with the given service addition.
|
<T> GroovyChain |
GroovyChainAction.register(Class<? super T> type,
T object,
Handler handler) |
GroovyChain |
GroovyChain.register(Object service,
Action<? super Chain> action)
Adds a handler to this chain that inserts the given handler with the given service addition.
|
GroovyChain |
GroovyChainAction.register(Object service,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.register(Object service,
Closure<?> handlers)
Creates a
List of Handler from the given Closure and adds a Handler to this GroovyChain
that inserts the Handler list with the given service addition. |
GroovyChain |
GroovyChainAction.register(Object service,
Closure<?> handlers) |
GroovyChain |
GroovyChain.register(Object object,
Handler handler)
Adds a handler that inserts the given handler with the given service addition.
|
GroovyChain |
GroovyChainAction.register(Object object,
Handler handler) |