Package | Description |
---|---|
org.javalite.activeweb |
Modifier and Type | Class and Description |
---|---|
class |
HttpSupport.RenderBuilder |
Modifier and Type | Method and Description |
---|---|
HttpSupport.HttpBuilder |
HttpSupport.HttpBuilder.contentType(String contentType)
Sets content type of response.
|
HttpSupport.HttpBuilder |
HttpSupport.HttpBuilder.header(String name,
String value)
Sets a HTTP header on response.
|
protected HttpSupport.HttpBuilder |
HttpSupport.redirect()
Redirects to the same controller, and action "index".
|
protected <T extends AppController> |
HttpSupport.redirect(Class<T> controllerClass)
Redirects to given controller, action "index" without any parameters.
|
protected <T extends AppController> |
HttpSupport.redirect(Class<T> controllerClass,
Map params)
Redirects to a controller, generates appropriate redirect path.
|
protected <T extends AppController> |
HttpSupport.redirect(Class<T> controllerClass,
Object id)
Convenience method for
HttpSupport.redirect(Class, java.util.Map) . |
protected <T extends AppController> |
HttpSupport.redirect(Class<T> controllerClass,
String action)
Convenience method for
HttpSupport.redirect(Class, java.util.Map) . |
protected <T extends AppController> |
HttpSupport.redirect(Class<T> controllerClass,
String action,
Object id)
Convenience method for
HttpSupport.redirect(Class, java.util.Map) . |
protected HttpSupport.HttpBuilder |
HttpSupport.redirect(String path)
Redirects to a an action of this controller, or an action of a different controller.
|
protected HttpSupport.HttpBuilder |
HttpSupport.redirect(URL url)
Redirects to another URL (usually another site).
|
protected HttpSupport.HttpBuilder |
HttpSupport.redirectToReferrer()
Redirects to referrer if one exists.
|
protected HttpSupport.HttpBuilder |
HttpSupport.redirectToReferrer(String defaultReference)
Redirects to referrer if one exists.
|
protected HttpSupport.HttpBuilder |
HttpSupport.respond(String text)
This method will send the text to a client verbatim.
|
protected HttpSupport.HttpBuilder |
HttpSupport.sendFile(File file)
Convenience method for downloading files.
|
protected HttpSupport.HttpBuilder |
HttpSupport.sendFile(File file,
boolean delete)
Convenience method for downloading files.
|
protected HttpSupport.HttpBuilder |
HttpSupport.streamOut(InputStream in)
Streams content of the
reader to the HTTP client. |
Copyright © 2016. All rights reserved.