Tags:
no tags assigned
Class Forwarder
in package de.infoasset.platform.handler
- Declaration
- public class Forwarder
- extends Object
- Hierarchy
java.lang.Object
de.infoasset.platform.handler.Forwarder
A forwarder is used to specify URLs using target objects (e.g.,
Handler classes or Assets) directly instead of using strings.
This increases the consistency of the overall system.
Use one of the following methods to specify the target URL:
- #go(PersistentEntity, NameValue...)
- go(Class, NameValue...)
- go(HandlerPattern, String...)
- go(String)
- goWithId(Class, Asset, NameValue...)
- goWithUid(Class, Asset)
Additional properties can be specified with the methods useHttps(), noRedirect(), and setAnchor(String).
With the static method getFullUrl() it is possible to get the URL of a Forwarder.WithForwarder back as a string.
Inner Class Summary
| abstract static class | Forwarder.WithForwarder |
|---|
Constructor Summary
Method Summary
| String | |
|---|---|
| String | |
| static String |
|
| static String | |
| String | |
| static String |
|
| static String | |
| static String |
|
| List | |
| static Response | |
| void | |
| void | |
| void |
|
| void |
|
| void | |
| void | |
| void | |
| boolean | |
| void | |
| void |
|
| void | |
| void | |
| String |
|
| void |
|
Constructor Detail
Forwarder
public Forwarder()
Method Detail
go
public void go(HandlerPattern pattern, String[] patternParameters)
go
public void go(HandlerPattern pattern, NameValue[] requestParameters, String[] patternParameters)
go
public void go(String absolutePath)
setAnchor
public void setAnchor(String anchor)
getAnchor
public String getAnchor()
useHttps
public void useHttps()
noRedirect
public void noRedirect()
getFullUrl
public String getFullUrl()
getFullUrlWithoutAnchor
public String getFullUrlWithoutAnchor()
getFullUrl
public static String getFullUrl(Forwarder.WithForwarder wf)
hasTarget
public boolean hasTarget()
retainParameters
public void retainParameters(String[] names)
getParameterNamesToRetain
public List getParameterNamesToRetain()
toString
public String toString()
setParametersOnRequest
public void setParametersOnRequest()
Referenced by:
|
Referenced by
(26)
|
0 Comments