com.bea.content.url
Class ShowPropertyURL

java.lang.Object
  extended by com.bea.p13n.url.GenericURL
      extended by com.bea.content.url.ShowPropertyURL
All Implemented Interfaces
Cloneable

public class ShowPropertyURL
extends com.bea.p13n.url.GenericURL

The ShowPropertyURL class creates URLs used to show node binary properties in-line, which are generally useful for displaying graphical images and html markup.

Calling toString() will return the String version of the URL based on the configured URL template.


Field Summary
 
Fields inherited from class com.bea.p13n.url.GenericURL
adapter, domain, DOMAIN, httpRequest, httpResponse, KNOWN_TOKENS, KNOWN_TOKENS_LIST, params, PATH, PORT, PREFIX, QUERY_STRING, SCHEME, SECURE_PORT
 
Method Summary
static ShowPropertyURL createShowPropertyURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ID nodeId)
          Creates and returns an instance of ShowPropertyURL that will render the default primary property of a node based on the provided node id.
static ShowPropertyURL createShowPropertyURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Node node)
          Creates and returns an instance of ShowPropertyURL that will render the default primary property of a node.
 ID getNodeId()
          Get the value of nodeId
 String getNodePath()
          Get the value of nodePath
 String getPropertyName()
          Get the value of propertyName
 String getVersionId()
          Get the value of versionId
 void setNodeId(ID nodeId)
          Set the value of nodeId
 void setNodePath(String nodePath)
          Set the value of nodePath
 void setPropertyName(String propertyName)
          Set the value of propertyName
 void setVersionId(String versionId)
          Set the value of versionId
 String toString()
           
 
Methods inherited from class com.bea.p13n.url.GenericURL
addParameter, addParameter, addParameter, appendEnsureSeparator, appendPathWhenNull, cleanUrl, clone, copyInfo, createGenericURL, createQueryStringBuilder, getContextualPath, getDomain, getEncodeSession, getParameter, getParameters, getPath, getPathPrefix, getPort, getResolvedTemplate, getScheme, getTemplate, removeParameter, setContextualPath, setDomain, setEncodeSession, setPath, setPathPrefix, setPort, setScheme, setTemplate, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createShowPropertyURL

public static ShowPropertyURL createShowPropertyURL(javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response,
                                                    Node node)
Creates and returns an instance of ShowPropertyURL that will render the default primary property of a node.

Parameters
request - The HttpServletRequest
response - The HttpServletResponse
node - The node whose primary property you want to render. Cannot be null.
Returns
An instance of ShowPropertyURL.

createShowPropertyURL

public static ShowPropertyURL createShowPropertyURL(javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response,
                                                    ID nodeId)
Creates and returns an instance of ShowPropertyURL that will render the default primary property of a node based on the provided node id.

Parameters
request - The HttpServletRequest
response - The HttpServletResponse
nodeId - The ID of the node to retrieve.
Returns
An instance of ShowPropertyURL.

toString

public String toString()
Overrides:
toString in class com.bea.p13n.url.GenericURL

getNodePath

public String getNodePath()
Get the value of nodePath


setNodePath

public void setNodePath(String nodePath)
Set the value of nodePath


getNodeId

public ID getNodeId()
Get the value of nodeId


setNodeId

public void setNodeId(ID nodeId)
Set the value of nodeId


getVersionId

public String getVersionId()
Get the value of versionId


setVersionId

public void setVersionId(String versionId)
Set the value of versionId


getPropertyName

public String getPropertyName()
Get the value of propertyName


setPropertyName

public void setPropertyName(String propertyName)
Set the value of propertyName



Copyright © 2011, Oracle. All rights reserved.