|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.portlet.url.DispatchURLFactory
public class DispatchURLFactory
Creates portlet URLs that tell to their target where to dispatch the associated request.
| Field Summary | |
|---|---|
static String |
PARAMETER_DISPATCH_URL
The name of the portlet URL parameter holding the URL to dispatch the request to. |
| Constructor Summary | |
|---|---|
DispatchURLFactory(javax.portlet.MimeResponse response,
URLRequestTypeMapper urlRequestTypeMapper,
String defaultDispatchURL)
Creates a new URL factory based on the given response. |
|
| Method Summary | |
|---|---|
javax.portlet.BaseURL |
createURL()
|
javax.portlet.BaseURL |
createURL(RequestType requestType)
Creates a dispatch URL with the specified type that targets the current page. |
javax.portlet.BaseURL |
createURL(String dispatchURL)
Creates a dispatch URL with the type determined from configuration. |
javax.portlet.BaseURL |
createURL(String dispatchURL,
RequestType requestType)
Creates a dispatch URL with the specified type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARAMETER_DISPATCH_URL
| Constructor Detail |
|---|
public DispatchURLFactory(javax.portlet.MimeResponse response,
URLRequestTypeMapper urlRequestTypeMapper,
String defaultDispatchURL)
response - the object used to create the portlet URLsurlRequestTypeMapper - the object used to get the portlet request type associated with a given servlet URLdefaultDispatchURL - the URL to use when the dispatch URL is not specified or is null| Method Detail |
|---|
public javax.portlet.BaseURL createURL()
public javax.portlet.BaseURL createURL(String dispatchURL)
dispatchURL - where to dispatch the request to
public javax.portlet.BaseURL createURL(RequestType requestType)
requestType - the type of URL to create
public javax.portlet.BaseURL createURL(String dispatchURL,
RequestType requestType)
dispatchURL - where to dispatch the request torequestType - the type of URL to create
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||