public class ResolveContentURLCmdImpl extends TaskCommandImpl implements ResolveContentURLCmd
The ResolveContentURLCmdImpl class provides an implementation of the ResolveContentURLCmd task command that resolves content URLs that are prefixed with the token "http://[cmsHost]". The token is replaced by a URL prefix value that is calculated by appending a configured path value to a configured host value. The configuration values are set in the STORECONF table. If the command does not detect the "e;http://[cmsHost]" prefix then the unresolved URL is returned without modification.
In addition to resolving the URL, this command will resolve the MIME type of the content. The command will scan the URL for a configured parameter name and use the parameter value as the MIME type. If the parameter is not found, the command will attempt to determine the MIME type from the file extension.
This command uses the following values in the STORECONF table.
Constructor and Description |
---|
ResolveContentURLCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected boolean | getIncludeHostName()
Get the includeHostName option.
|
protected boolean | getInternal()
Get the internal option.
|
protected boolean | getPreview()
Get the preview option.
|
java.lang.String | getResolvedMimeSubtype()
Get the resolved MIME content sub-type.
|
java.lang.String | getResolvedMimeType()
Get the resolved MIME content type.
|
java.lang.String | getResolvedRenderType()
Get the resolved render type.
|
java.lang.String | getResolvedURL()
Get the resolved content URL.
|
protected java.lang.String | getUnresolvedURL()
Get the unresolved content URL.
|
void | performExecute()
This method performs the business logic for this command.
|
protected void | resolveMetaInformation()
Resolve the meta-information encoded in the URL.
|
void | setIncludeHostName(boolean includeHostName)
Indicates that the content URL must be a fully qualified URL that includes the scheme, host name and port.
|
void | setInternal(boolean internal)
Indicates that the content URL is to be resolved for an internal call from the WebSphere Commerce application server.
|
void | setPreview(boolean preview)
Indicates that the content URL is to be resolved to the preview location.
|
protected void | setResolvedMimeSubtype(java.lang.String resolvedMimeSubtype)
Set the resolved MIME content sub-type.
|
protected void | setResolvedMimeType(java.lang.String resolvedMimeType)
Set the resolved MIME content type.
|
protected void | setResolvedRenderType(java.lang.String resolvedRenderType)
Set the resolved render type.
|
protected void | setResolvedURL(java.lang.String resolvedURL)
Set the resolved URL.
|
void | setUnresolvedURL(java.lang.String unresolvedURL)
Set the unresolved content URL.
|
public void setUnresolvedURL(java.lang.String unresolvedURL)
protected java.lang.String getUnresolvedURL()
public void setInternal(boolean internal)
protected boolean getInternal()
public void setPreview(boolean preview)
protected boolean getPreview()
public void setIncludeHostName(boolean includeHostName)
protected boolean getIncludeHostName()
public java.lang.String getResolvedURL()
protected void setResolvedURL(java.lang.String resolvedURL)
public java.lang.String getResolvedMimeType()
protected void setResolvedMimeType(java.lang.String resolvedMimeType)
public java.lang.String getResolvedMimeSubtype()
protected void setResolvedMimeSubtype(java.lang.String resolvedMimeSubtype)
public java.lang.String getResolvedRenderType()
protected void setResolvedRenderType(java.lang.String resolvedRenderType)
protected void resolveMetaInformation()
public void performExecute() throws ECException