|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dispatch
The Dispatch
object represents the dispatch to a controller method. It can be used for generating
URL or as a Response.View
objects. A dispatch object can be obtained from a RequestContext
object for building controller methods, however the best way to obtain a builder is to use a controller companion
that provides a type safe way for creating fully configured dispatch.
Type safe Dispatch
factory method are generated for each view, action or resource controller methods. The
signature of a dispatch factory is the same as the original method.
public void MyController {
@Action
public Response.View myAction(String param) {
return MyController_.myRender();
}
@View
public void myRender() {
String url = MyController_.myAction("hello");
}
}
Method Summary | ||
---|---|---|
Dispatch |
escapeXML(Boolean escapeXML)
|
|
|
setProperty(PropertyType<T> propertyType,
T propertyValue)
Set or clear a property of the URL. |
|
String |
toString()
|
|
Dispatch |
with(juzu.impl.common.MimeType mimeType)
|
|
Dispatch |
with(PropertyMap properties)
|
Method Detail |
---|
Dispatch with(juzu.impl.common.MimeType mimeType)
Dispatch with(PropertyMap properties)
Dispatch escapeXML(Boolean escapeXML)
<T> Dispatch setProperty(PropertyType<T> propertyType, T propertyValue) throws IllegalArgumentException
T
- the property generic typepropertyType
- the property typepropertyValue
- the property value
IllegalArgumentException
- if the property is not validString toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |