IServiceInterfaceUrl
instead.@Deprecated public class ServiceContainerUrl extends Object implements IServiceInterfaceUrl
IURLFactory.createActionURL()
,
IURLFactory.createRenderURL()
ACTION_URL, EXTERNAL_URL, RENDER_URL, TARGET_SCOPE_PAGE, TARGET_SCOPE_SERVICE, TARGET_SCOPE_SERVICEINSTANCE, TARGET_SCOPE_SERVICEINTERFACE, TARGET_SCOPE_SERVICEINTERFACEINSTANCE
Constructor and Description |
---|
ServiceContainerUrl(int urlType)
Deprecated.
This constructor accepts a parameter of one of the following values
ACTION_URL
RENDER_URL
EXTERNAL_URL |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String arg0,
String arg1)
Deprecated.
|
String |
getOpenScript(IServiceInterfaceRequest request,
OpenRuntimeInterfaceBehavior behavior,
String controlContainerFormName,
ITransaction transaction)
Deprecated.
Returns the script for opening this URL based on the provided parameters.
|
String |
getOpenScript(IServiceInterfaceRequest request,
String controlContainerFormName,
ITransaction transaction)
Deprecated.
Returns the script for opening this URL based on the provided parameters.
|
Map<String,String[]> |
getParameterMap()
Deprecated.
|
String[] |
getParameterNames()
Deprecated.
Get the given String parameter to this URL.
|
PortletMode |
getPortletMode()
Deprecated.
|
protected String |
getReplaceInterfaceStateParameterName()
Deprecated.
Returns the replacement interface state parameter name.
|
protected String |
getTargetId()
Deprecated.
Returns the target identifier of this URL.
|
protected int |
getTargetScope()
Deprecated.
Returns the target scope of this URL.
|
String |
getUrl()
Deprecated.
Since 4.0.7 this method was replaced by
toString() method, so this
interface uses the same method as specified in the PortletURL interface. |
int |
getUrlType()
Deprecated.
Returns the type of url.
|
String |
getWindowOpen(ITransaction transaction)
Deprecated.
since 8.2.0 replaced by
getOpenScript(IServiceInterfaceRequest, String, ITransaction) |
WindowState |
getWindowState()
Deprecated.
|
void |
removePublicRenderParameter(String arg0)
Deprecated.
|
void |
setBaseSecure(boolean baseSecure)
Deprecated.
Sets the secure type (HTTP or HTTPS) this URL is based on.
|
void |
setBaseWebsite(IWebsite baseWebsite)
Deprecated.
Sets the website this URL is based on.
|
void |
setChannelId(String channelId)
Deprecated.
Set the destination channel.
|
void |
setDestinationIds(IServiceInterfaceRequest request)
Deprecated.
Sets the destination page, channel, runtime service interface and runtime service instance
Ids.
|
void |
setExternalUrl(String url)
Deprecated.
Set external url
|
void |
setPageId(String pageId)
Deprecated.
Set the destination page.
|
void |
setParameter(String name,
String value)
Deprecated.
Sets the given String parameter to this URL.
|
void |
setParameter(String name,
String[] values)
Deprecated.
Sets the given String array parameter to this URL.
|
void |
setParameters(Map<String,String[]> parameters)
Deprecated.
Sets a parameter map for this URL.
|
void |
setPortletMode(PortletMode portletMode)
Deprecated.
|
void |
setPreviousParametersStorageId(IServiceInterfaceRequest request)
Deprecated.
Sets the previous parameters storage id with the value taken from the given request.
|
void |
setProperty(String arg0,
String arg1)
Deprecated.
|
protected void |
setReplacementStateParameter(ReplaceInterfacesStorage replaceInterfacesStorage,
String originalPageId)
Deprecated.
Sets the replacement interface storage.
|
void |
setRunTimeServiceInstanceId(String runTimeServiceInstanceId)
Deprecated.
Sets the runtime service instance identifier.
|
void |
setRunTimeServiceInterfaceId(String runTimeServiceInterfaceId)
Deprecated.
Sets the runtime service interface identifier.
|
void |
setSecure(boolean secure)
Deprecated.
Indicated the security setting for this URL.
|
void |
setTargetScope(int targetScope,
String targetId)
Deprecated.
The target scope allows the service interface to send parameters to one or more service
interfaces.
|
void |
setWindowState(WindowState windowState)
Deprecated.
|
String |
toString()
Deprecated.
Returns the service interface URL string representation to be embedded in the markup.
|
String |
toString(boolean process)
Deprecated.
|
void |
write(Writer arg0)
Deprecated.
|
void |
write(Writer arg0,
boolean arg1)
Deprecated.
|
public ServiceContainerUrl(int urlType)
ACTION_URL
RENDER_URL
EXTERNAL_URL
urlType
- public void setPortletMode(PortletMode portletMode) throws PortletModeException
setPortletMode
in interface PortletURL
PortletModeException
public void setWindowState(WindowState windowState) throws WindowStateException
setWindowState
in interface PortletURL
WindowStateException
public String[] getParameterNames()
public void setParameter(String name, String value)
This method replaces all parameters with the given key.
The ServiceInterfaceURL
implementation 'x-www-form-urlencoded' encodes all
parameter names and values. Developers should not encode them.
A service interface container may prefix the attribute names internally in order to preserve a unique namespace for the service interface.
setParameter
in interface BaseURL
name
- the parameter namevalue
- the parameter valueIllegalArgumentException
- if name or value are null
.public void setParameter(String name, String[] values)
This method replaces all parameters with the given key.
The ServiceInterfaceURL
implementation 'x-www-form-urlencoded' encodes all
parameter names and values. Developers should not encode them.
A service interface container may prefix the attribute names internally in order to preserve a unique namespace for the service interface.
setParameter
in interface BaseURL
name
- the parameter namevalues
- the parameter valuesIllegalArgumentException
- if name or values are null
.public void setParameters(Map<String,String[]> parameters)
All previously set parameters are cleared.
The ServiceInterfaceURL
implementation 'x-www-form-urlencoded' encodes all
parameter names and values. Developers should not encode them.
A service interface container may prefix the attribute names internally, in order to preserve a unique namespace for the service interface.
setParameters
in interface BaseURL
parameters
- Map containing parameter names for the render phase as keys and parameter values
as map values. The keys in the parameter map must be of type String. The values in
the parameter map must be of type String array (String[]
).IllegalArgumentException
- if parameters is null
, if any of the key/values in the Map are
null
, if any of the keys is not a String, or if any of the
values is not a String array.public void setSecure(boolean secure)
Secure set to true
indicates that the service interface requests a secure
connection between the client and the service interface for this URL. Secure set to
false
indicates that the service interface does not need a secure connection
for this URL. If the security is not set for a URL, it will stay the same as the current
request.
setSecure
in interface BaseURL
secure
- true, if portlet requests to have a secure connection between its portlet window
and the client; false, if the portlet does not require a secure connection.ServiceInterfaceSecurityException
- if the run-time environment does not support the indicated settingpublic void setPageId(String pageId)
setPageId
in interface IServiceInterfaceUrl
pageId
- public void setChannelId(String channelId)
setChannelId
in interface IServiceInterfaceUrl
channelId
- public void setRunTimeServiceInterfaceId(String runTimeServiceInterfaceId)
IServiceInterfaceUrl
setRunTimeServiceInterfaceId
in interface IServiceInterfaceUrl
public void setRunTimeServiceInstanceId(String runTimeServiceInstanceId)
IServiceInterfaceUrl
setRunTimeServiceInstanceId
in interface IServiceInterfaceUrl
public void setPreviousParametersStorageId(IServiceInterfaceRequest request)
containerRequest
- the request.public void setDestinationIds(IServiceInterfaceRequest request)
request
- a request where the ids will be extracted from.protected final int getTargetScope()
setTargetScope(int, String)
protected final String getTargetId()
setTargetScope(int, String)
public void setTargetScope(int targetScope, String targetId)
TARGET_SCOPE_SERVICE
TARGET_SCOPE_SERVICEINSTANCE
TARGET_SCOPE_SERVICEINTERFACE
TARGET_SCOPE_SERVICEINTERFACEINSTANCE
setTargetScope
in interface IServiceInterfaceUrl
targetScope
- targetId
- public void setBaseWebsite(IWebsite baseWebsite)
true
parameter on toString(boolean)
).
The generated URL when processed will only be relative if this URL
refers to a web resource in the same website.
It also depends on baseSecure
to be valid
for the destination to be relative.
May be null
if the base website is not known. In this case if
the URL is generated processed, it will be absolute.
baseWebsite
- the base website for the URL, or null
if it
is not known.public void setBaseSecure(boolean baseSecure)
true
parameter on toString(boolean)
)
The generated URL when processed will only be relative if this URL
refers to a web resource that may be accessed in this secure type.
It also depends on baseWebsite
to be valid
for the destination to be relative.
Default value is false
.
baseSecure
- true
if the base URL is secure, false
otherwise.@Deprecated public String getUrl() throws PortalException
toString()
method, so this
interface uses the same method as specified in the PortletURL
interface.IServiceInterfaceUrl
getUrl
in interface IServiceInterfaceUrl
PortalException
public String toString()
IServiceInterfaceUrl
public String toString(boolean process)
@Deprecated public String getWindowOpen(ITransaction transaction) throws PortalException
getOpenScript(IServiceInterfaceRequest, String, ITransaction)
transaction
- the transaction for persistence access.PortalException
public String getOpenScript(IServiceInterfaceRequest request, String controlContainerFormName, ITransaction transaction) throws PortalException
request
- the request being processed (only needed if the inferred behavior is REPLACE).controlContainerFormName
- the control container form name (only needed if the inferred behavior is REPLACE).transaction
- the transaction to use.PortalException
public String getOpenScript(IServiceInterfaceRequest request, OpenRuntimeInterfaceBehavior behavior, String controlContainerFormName, ITransaction transaction) throws PortalException
request
- the request being processed (only needed if the desired behavior is not provided and the inferred behavior is REPLACE).behavior
- the desired behavior (if not provided, it will be inferred from parameters).controlContainerFormName
- the control container form name (only needed if the desired behavior is not provided and the inferred behavior is REPLACE).transaction
- the transaction to use.PortalException
public void setExternalUrl(String url)
IServiceInterfaceUrl
setExternalUrl
in interface IServiceInterfaceUrl
public int getUrlType()
IServiceInterfaceUrl.RENDER_URL
, IServiceInterfaceUrl.ACTION_URL
and IServiceInterfaceUrl.EXTERNAL_URL
getUrlType
in interface IServiceInterfaceUrl
public PortletMode getPortletMode()
getPortletMode
in interface PortletURL
public WindowState getWindowState()
getWindowState
in interface PortletURL
public void removePublicRenderParameter(String arg0)
removePublicRenderParameter
in interface PortletURL
public void addProperty(String arg0, String arg1)
addProperty
in interface BaseURL
public Map<String,String[]> getParameterMap()
getParameterMap
in interface BaseURL
public void setProperty(String arg0, String arg1)
setProperty
in interface BaseURL
public void write(Writer arg0) throws IOException
write
in interface BaseURL
IOException
public void write(Writer arg0, boolean arg1) throws IOException
write
in interface BaseURL
IOException
protected void setReplacementStateParameter(ReplaceInterfacesStorage replaceInterfacesStorage, String originalPageId)
replaceInterfacesStorage
- the replacement interface storage.originalPageId
- the original page identifier.protected String getReplaceInterfaceStateParameterName()
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.