public class ComponentUrlProvider extends Object implements UrlProvider
Modifier and Type | Field and Description |
---|---|
protected String |
action |
protected String |
anchor |
protected Component |
component |
protected boolean |
encode |
protected boolean |
escapeAmp |
protected ExtraParameterProvider |
extraParameterProvider |
protected boolean |
forceAddSchemeHostAndPort |
protected javax.servlet.http.HttpServletRequest |
httpServletRequest |
protected javax.servlet.http.HttpServletResponse |
httpServletResponse |
protected boolean |
includeContext |
protected String |
includeParams |
protected String |
method |
protected String |
namespace |
protected String |
portletMode |
protected String |
portletUrlType |
protected String |
scheme |
protected String |
urlIncludeParams |
protected UrlRenderer |
urlRenderer |
protected String |
value |
protected String |
windowState |
ALL, GET, NONE
Constructor and Description |
---|
ComponentUrlProvider(Component component,
Map parameters) |
Modifier and Type | Method and Description |
---|---|
String |
determineActionURL(String action,
String namespace,
String method,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Map parameters,
String scheme,
boolean includeContext,
boolean encodeResult,
boolean forceAddSchemeHostAndPort,
boolean escapeAmp) |
String |
determineNamespace(String namespace,
ValueStack stack,
javax.servlet.http.HttpServletRequest req) |
String |
findString(String expr) |
String |
getAction() |
String |
getAnchor() |
ExtraParameterProvider |
getExtraParameterProvider() |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest() |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse() |
String |
getIncludeParams() |
String |
getMethod() |
String |
getNamespace() |
Map |
getParameters() |
String |
getPortletMode() |
String |
getPortletUrlType() |
String |
getScheme() |
ValueStack |
getStack() |
String |
getUrlIncludeParams() |
UrlRenderer |
getUrlRenderer() |
String |
getValue() |
String |
getVar() |
String |
getWindowState() |
boolean |
isEncode() |
boolean |
isEscapeAmp() |
boolean |
isForceAddSchemeHostAndPort() |
boolean |
isIncludeContext() |
boolean |
isPutInContext() |
void |
putInContext(String result) |
void |
setAction(String action) |
void |
setAnchor(String anchor) |
void |
setEncode(boolean encode) |
void |
setEscapeAmp(boolean escapeAmp) |
void |
setExtraParameterProvider(ExtraParameterProvider extraParameterProvider) |
void |
setForceAddSchemeHostAndPort(boolean forceAddSchemeHostAndPort) |
void |
setHttpServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
void |
setHttpServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse) |
void |
setIncludeContext(boolean includeContext) |
void |
setIncludeParams(String includeParams) |
void |
setMethod(String method) |
void |
setNamespace(String namespace) |
void |
setPortletMode(String portletMode) |
void |
setPortletUrlType(String portletUrlType) |
void |
setScheme(String scheme) |
void |
setUrlIncludeParams(String urlIncludeParams) |
void |
setUrlRenderer(UrlRenderer urlRenderer) |
void |
setValue(String value) |
void |
setWindowState(String windowState) |
protected javax.servlet.http.HttpServletRequest httpServletRequest
protected javax.servlet.http.HttpServletResponse httpServletResponse
protected String includeParams
protected String scheme
protected String value
protected String action
protected String namespace
protected String method
protected boolean encode
protected boolean includeContext
protected boolean escapeAmp
protected String portletMode
protected String windowState
protected String portletUrlType
protected String anchor
protected boolean forceAddSchemeHostAndPort
protected String urlIncludeParams
protected ExtraParameterProvider extraParameterProvider
protected UrlRenderer urlRenderer
protected Component component
public String determineActionURL(String action, String namespace, String method, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort, boolean escapeAmp)
determineActionURL
in interface UrlProvider
public String determineNamespace(String namespace, ValueStack stack, javax.servlet.http.HttpServletRequest req)
determineNamespace
in interface UrlProvider
public String findString(String expr)
findString
in interface UrlProvider
public Map getParameters()
getParameters
in interface UrlProvider
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
getHttpServletRequest
in interface UrlProvider
public void setHttpServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
setHttpServletRequest
in interface UrlProvider
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
getHttpServletResponse
in interface UrlProvider
public void setHttpServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse)
setHttpServletResponse
in interface UrlProvider
public String getIncludeParams()
getIncludeParams
in interface UrlProvider
public void setIncludeParams(String includeParams)
setIncludeParams
in interface UrlProvider
public String getScheme()
getScheme
in interface UrlProvider
public void setScheme(String scheme)
setScheme
in interface UrlProvider
public boolean isPutInContext()
isPutInContext
in interface UrlProvider
public String getVar()
getVar
in interface UrlProvider
public String getValue()
getValue
in interface UrlProvider
public void setValue(String value)
setValue
in interface UrlProvider
public String getAction()
getAction
in interface UrlProvider
public void setAction(String action)
setAction
in interface UrlProvider
public String getNamespace()
getNamespace
in interface UrlProvider
public void setNamespace(String namespace)
setNamespace
in interface UrlProvider
public String getMethod()
getMethod
in interface UrlProvider
public void setMethod(String method)
setMethod
in interface UrlProvider
public boolean isEncode()
isEncode
in interface UrlProvider
public void setEncode(boolean encode)
setEncode
in interface UrlProvider
public boolean isIncludeContext()
isIncludeContext
in interface UrlProvider
public void setIncludeContext(boolean includeContext)
setIncludeContext
in interface UrlProvider
public boolean isEscapeAmp()
isEscapeAmp
in interface UrlProvider
public void setEscapeAmp(boolean escapeAmp)
setEscapeAmp
in interface UrlProvider
public String getPortletMode()
getPortletMode
in interface UrlProvider
public void setPortletMode(String portletMode)
setPortletMode
in interface UrlProvider
public String getWindowState()
getWindowState
in interface UrlProvider
public void setWindowState(String windowState)
setWindowState
in interface UrlProvider
public String getPortletUrlType()
getPortletUrlType
in interface UrlProvider
public ValueStack getStack()
getStack
in interface UrlProvider
public void setPortletUrlType(String portletUrlType)
setPortletUrlType
in interface UrlProvider
public String getAnchor()
getAnchor
in interface UrlProvider
public void setAnchor(String anchor)
setAnchor
in interface UrlProvider
public boolean isForceAddSchemeHostAndPort()
isForceAddSchemeHostAndPort
in interface UrlProvider
public void setForceAddSchemeHostAndPort(boolean forceAddSchemeHostAndPort)
setForceAddSchemeHostAndPort
in interface UrlProvider
public void putInContext(String result)
putInContext
in interface UrlProvider
public String getUrlIncludeParams()
getUrlIncludeParams
in interface UrlProvider
public void setUrlIncludeParams(String urlIncludeParams)
setUrlIncludeParams
in interface UrlProvider
public ExtraParameterProvider getExtraParameterProvider()
getExtraParameterProvider
in interface UrlProvider
public void setExtraParameterProvider(ExtraParameterProvider extraParameterProvider)
setExtraParameterProvider
in interface UrlProvider
public UrlRenderer getUrlRenderer()
public void setUrlRenderer(UrlRenderer urlRenderer)
setUrlRenderer
in interface UrlProvider
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.