Package | Description |
---|---|
ratpack.handling |
The handling of application requests.
|
ratpack.registry |
Registries hold objects that can be retrieved via type, and are a key aspect of Ratpack applications.
|
Modifier and Type | Method and Description |
---|---|
void |
Context.clientError(int statusCode)
Forwards the error to the
ClientErrorHandler in this service. |
java.nio.file.Path |
Context.file(java.lang.String path)
Gets the file relative to the contextual
FileSystemBinding . |
default PathTokens |
Context.getAllPathTokens()
The contextual path tokens of the current
PathBinding . |
default PathTokens |
Context.getPathTokens()
The contextual path tokens of the current
PathBinding . |
Modifier and Type | Method and Description |
---|---|
default <O> O |
Registry.get(java.lang.Class<O> type)
Provides an object of the specified type, or throws an exception if no object of that type is available.
|
default <O> O |
Registry.get(TypeToken<O> type)
Provides an object of the specified type, or throws an exception if no object of that type is available.
|
default <T> void |
MutableRegistry.remove(java.lang.Class<T> type)
Remove the registration for the given type.
|
<T> void |
MutableRegistry.remove(TypeToken<T> type)
Remove the registration for the given type.
|