public class Default extends Object
Intended to be used in routes directly.
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
Outcome |
found(String url) |
Outcome |
found(String url, Map<String,List<String>> queryString) |
Outcome |
internalServerError() |
Outcome |
noContent() |
Outcome |
notFound() |
Outcome |
notImplemented() |
Outcome |
ok() |
Outcome |
ok(String text) |
Outcome |
ping() |
Outcome |
seeOther(String url) |
Outcome |
seeOther(String url, Map<String,List<String>> queryString) |
public Outcome ping()
public Outcome ok()
public Outcome ok(String text)
text
- Response body text
public Outcome noContent()
public Outcome notFound()
public Outcome found(String url, Map<String,List<String>> queryString)
url
- Target URL
queryString
- Query String elements
public Outcome seeOther(String url)
url
- Target URL
public Outcome seeOther(String url, Map<String,List<String>> queryString)
url
- Target URL
queryString
- Query String elements
public Outcome internalServerError()
public Outcome notImplemented()