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. |
void |
ReadOnlyContext.error(Exception exception)
Forwards the exception to the
ServerErrorHandler in this service. |
Path |
ReadOnlyContext.file(String path)
Gets the file relative to the contextual
FileSystemBinding . |
PathTokens |
ReadOnlyContext.getAllPathTokens()
The contextual path tokens of the current
PathBinding . |
PathTokens |
ReadOnlyContext.getPathTokens()
The contextual path tokens of the current
PathBinding . |
void |
Context.redirect(int code,
String location)
Sends a redirect response location URL and status code (which should be in the 3xx range).
|
void |
Context.redirect(String location)
Sends a temporary redirect response (i.e.
|
Modifier and Type | Method and Description |
---|---|
<O> O |
Registry.get(Class<O> type)
Provides an object of the specified type, or throws an exception if no object of that type is available.
|
<O extends T> |
MutableRegistry.remove(Class<O> type)
Remove the registration for the given type.
|