|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface URLBuilder
The URLBuilder produces URL for a Juzu application.
Builders can be obtained from a MimeContext object for building controller methods, however
the favorite way to obtain a builder is to use a controller companion that provides a type safe way for creating
fully configured builders.
Type safe URLBuilder factory method are generated for each view, action or resource controller methods.
The signature of an url builder factory is obtained by translating the signature of the controller method and appending
the suffix URL after the method name.
public void MyController {
@Action
public void myAction(String param) { }
@View
public void myRender() {
URLBuilder builder = MyController_.myActionURL("hello");
String url = builder.toString();
}
}
| Method Summary | |
|---|---|
URLBuilder |
setParameter(String name,
String value)
Set a parameter on the URL that will be built by this builder. |
String |
toString()
Build the string value of this URL. |
| Method Detail |
|---|
URLBuilder setParameter(String name,
String value)
throws NullPointerException
Set a parameter on the URL that will be built by this builder. This method replaces the parameter with the given
name . A parameter value of null indicates that this parameter should be removed.
name - the parameter namevalue - the parameter value
NullPointerException - if the name parameter is nullString toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||