Skip navigation links


com.bea.content.url
Class DownloadBinaryURL

java.lang.Object
  extended by com.bea.p13n.url.GenericURL
      extended by com.bea.content.url.DownloadBinaryURL

All Implemented Interfaces
Cloneable

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

The DownloadBinaryURL class creates URLs used to download binary properties.

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 DownloadBinaryURL createDownloadBinaryURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Node node)
          Creates and returns an instance of DownloadBinaryURL.
static DownloadBinaryURL createDownloadBinaryURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Node node, String propertyName)
          Creates and returns an instance of DownloadBinaryURL.
 String getFileName()
          Get the value of fileName
 void setFileName(String fileName)
          Set the value of fileName
 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

createDownloadBinaryURL

public static DownloadBinaryURL createDownloadBinaryURL(javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response,
                                                        Node node)
Creates and returns an instance of DownloadBinaryURL.

This will use the default primary property as the download (if available).

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

createDownloadBinaryURL

public static DownloadBinaryURL createDownloadBinaryURL(javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response,
                                                        Node node,
                                                        String propertyName)
Creates and returns an instance of DownloadBinaryURL.
Parameters
request - The HttpServletRequest
response - The HttpServletResponse
node - The node whose primary property you want to render. Cannot be null.
propertyName - the binary property to download. If null, the primary property of the node will be used to download.
Returns
An instance of DownloadBinaryURL.

getFileName

public String getFileName()
Get the value of fileName

setFileName

public void setFileName(String fileName)
Set the value of fileName

toString

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

Skip navigation links


Copyright © 2010, Oracle. All rights reserved.