public class TagUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CARRIAGERETURN
CARRIAGE RETURN
|
static java.lang.String |
COPYRIGHT
Copyright String
|
static java.lang.String |
LINEFEED
Line Feed
|
Modifier and Type | Method and Description |
---|---|
static java.lang.StringBuffer |
bufferReplace(java.lang.StringBuffer content,
java.lang.String pattern,
java.lang.String replace)
Replace all patterns with replace string for a string buffer.
|
static java.lang.String |
getContentsAt(java.lang.String urlLocation)
This function returns the contents of the given URL Location
|
static java.lang.String |
getMainURL()
It returns the main part of the URL: http://
|
static java.lang.String |
getMainURL(com.ibm.commerce.command.CommandContext context)
It returns the main part of the URL: http://
|
static java.lang.String |
getSecuredMainURL()
It returns the main part of the URL.
|
static java.lang.String |
getSecuredMainURL(com.ibm.commerce.command.CommandContext context)
It returns the main part of the URL.
|
static java.lang.String |
getServerAddress()
Returns the Server IP Address
|
static java.lang.String |
getServerAddress(com.ibm.commerce.command.CommandContext context)
Returns the Server Address
|
static java.lang.String |
getSpotContentFromView(java.lang.String view,
java.lang.Long userId,
com.ibm.commerce.datatype.TypedProperty properties,
com.ibm.commerce.command.CommandContext comContext)
This method invokes the view URL as the user of the specified user identifier and returns
the generated the content.
|
static java.lang.String |
getSpotContentFromView(java.lang.String view,
java.lang.String recipientIdS,
java.lang.String storeIdS,
com.ibm.commerce.datatype.TypedProperty properties)
This method invokes the view URL as the user of the specified user identifier and returns
the generated the content.
|
static java.lang.String |
getStoresWebPath()
This method returns the store web path.
|
public static final java.lang.String CARRIAGERETURN
public static final java.lang.String COPYRIGHT
public static final java.lang.String LINEFEED
public static java.lang.StringBuffer bufferReplace(java.lang.StringBuffer content, java.lang.String pattern, java.lang.String replace)
content
- pattern
- replace
- public static java.lang.String getContentsAt(java.lang.String urlLocation) throws com.ibm.commerce.exception.ECException
urlLocation
- - Stringcom.ibm.commerce.exception.ECException
- - If any exception occurs during reading the contents from
specifed URL location .public static java.lang.String getMainURL()
public static java.lang.String getMainURL(com.ibm.commerce.command.CommandContext context)
context
- The command contextpublic static java.lang.String getSecuredMainURL()
public static java.lang.String getSecuredMainURL(com.ibm.commerce.command.CommandContext context)
context
- The command contextpublic static java.lang.String getServerAddress()
public static java.lang.String getServerAddress(com.ibm.commerce.command.CommandContext context)
context
- CommandContext of the current requestHttpServletRequest
,
otherwise, returns by GetWebHostCmd
. If context is null, the address returned is the WebServer/HostName from wc-server.xmlpublic static java.lang.String getSpotContentFromView(java.lang.String view, java.lang.Long userId, com.ibm.commerce.datatype.TypedProperty properties, com.ibm.commerce.command.CommandContext comContext)
view
- The name of the view URL to invoke.userId
- The identifier of the userproperties
- URL parameters to call the view withcomContext
- The command context used when invoking the view URLnull
is returned if an error occurred during processing.public static java.lang.String getSpotContentFromView(java.lang.String view, java.lang.String recipientIdS, java.lang.String storeIdS, com.ibm.commerce.datatype.TypedProperty properties)
view
- The name of the view URL to invoke.recipientIdS
- The String identifier of the user.storeIdS
- The String identifier of the store.properties
- URL parameters to call the view withnull
is returned if an error occurred during processing.public static java.lang.String getStoresWebPath()