com.bea.content.manager.servlets.attribute.property
Class DownloadBinaryPropertyResolver

java.lang.Object
  extended by com.bea.content.manager.servlets.attribute.impl.AbstractContentAttributeResolver<Object>
      extended by com.bea.content.manager.servlets.attribute.property.ContentPropertyResolver
          extended by com.bea.content.manager.servlets.attribute.property.SingleValuePropertyResolver
              extended by com.bea.content.manager.servlets.attribute.property.BinaryPropertyResolver
                  extended by com.bea.content.manager.servlets.attribute.property.URLBinaryPropertyResolver
                      extended by com.bea.content.manager.servlets.attribute.property.DownloadBinaryPropertyResolver
All Implemented Interfaces
AttributeResolver<Object>, ContentResolverConstants, PropertyResolverConstants

public class DownloadBinaryPropertyResolver
extends URLBinaryPropertyResolver

This resolver is responsible for generating an URL to the ShowBinaryServlet so that the property can be rendered.

For now, this is using a hard-coded URL format that is based on the path prefix passed by the caller. Optimally, we would want to use the URL templating once it has been moved to p13n.

See Also
ATTR_URL_PATH_PREFIX

Field Summary
 
Fields inherited from class com.bea.content.manager.servlets.attribute.property.ContentPropertyResolver
CURRENT_VERSION_NUMBER_STR
 
Fields inherited from class com.bea.content.manager.servlets.attribute.impl.AbstractContentAttributeResolver
debug, txDebug
 
Fields inherited from interface com.bea.content.manager.servlets.attribute.property.PropertyResolverConstants
ATTR_CONVERSION_TYPE, ATTR_DATE_FORMATTER, ATTR_DEFAULT_VALUE, ATTR_END_INDEX, ATTR_HTTP_SERVLET_REQUEST, ATTR_HTTP_SERVLET_RESPONSE, ATTR_IS_MULTIVALUED, ATTR_IS_NESTED_PROPERTY, ATTR_NODE_VERSION, ATTR_NUMBER_FORMATTER, ATTR_OVERRIDING_PROPERTY, ATTR_PROPERTY_NAME, ATTR_READ_WRITE_BLOCK_SIZE, ATTR_SELECTED_NODE, ATTR_START_INDEX, ATTR_TRANSACTION_TIMEOUT_SECS
 
Constructor Summary
DownloadBinaryPropertyResolver()
           
 
Method Summary
 Object resolveAttribute(AttributeContext context)
          Retrieves the "value(s)" from the specified node and property name.
 
Methods inherited from class com.bea.content.manager.servlets.attribute.property.URLBinaryPropertyResolver
getDefaultContextValues, getRequest, getRequiredContextAttributes, getResponse, getValidContextAttributeClasses
 
Methods inherited from class com.bea.content.manager.servlets.attribute.property.BinaryPropertyResolver
getBinaryResolver, validateNestedTypes
 
Methods inherited from class com.bea.content.manager.servlets.attribute.property.ContentPropertyResolver
convert, doNonBinary, getConversionType, getDateFormatter, getDefaultValue, getEndIndex, getIsMultiValued, getIsNestedProperty, getNodeProperty, getNodeVersion, getNumberFormatter, getPrimaryPropertyFromVersion, getPropertyName, getPropertyValues, getSelectedNode, getStartIndex, resolveAttribute, resolveAttributeToString, shouldGetPropertyFromNode, toString, toString, validateAndProcessProperty, validateAttributeContext
 
Methods inherited from class com.bea.content.manager.servlets.attribute.impl.AbstractContentAttributeResolver
checkCallerCanViewNode, getContextAttribute, validateAttributeValueFromOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadBinaryPropertyResolver

public DownloadBinaryPropertyResolver()
Method Detail

resolveAttribute

public Object resolveAttribute(AttributeContext context)
Description copied from class: ContentPropertyResolver
Retrieves the "value(s)" from the specified node and property name.

Specified by:
resolveAttribute in interface AttributeResolver<Object>
Overrides:
resolveAttribute in class BinaryPropertyResolver
Parameters
context - The AttributeContext to use when resolving this attribute.
Returns
The specified property value.


Copyright © 2011, Oracle. All rights reserved.