|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjuzu.plugin.asset.AssetController
public class AssetController
The asset controller.
| Constructor Summary | |
|---|---|
AssetController()
|
|
| Method Summary | |
|---|---|
String |
byId(String id)
Generate an asset URL from the specified id. |
String |
byPath(AssetLocation location,
String uri)
Returns the URL of an asset. |
String |
byPath(String path)
Returns the URL of an asset located in the assets package of the application. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssetController()
| Method Detail |
|---|
public String byId(String id)
throws NullPointerException
id - the asset id
NullPointerException - if the asset id is null
public String byPath(String path)
throws NullPointerException
Returns the URL of an asset located in the assets package of the application.
If the controller is not under the scope of a request, null is returned.
path - the path
NullPointerException - when the path argument is null
public String byPath(AssetLocation location,
String uri)
throws NullPointerException
Returns the URL of an asset.
If the controller is not under the scope of a request, null is returned.
location - the asset locationuri - the asset uri
NullPointerException - when the path argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||