Skip navigation links


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

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

All Implemented Interfaces
AttributeResolver<Object>, ContentResolverConstants, PropertyResolverConstants
Direct Known Subclasses:
DownloadBinaryPropertyResolver, ShowBinaryPropertyResolver

public abstract class URLBinaryPropertyResolver
extends BinaryPropertyResolver

Abstract resolver for URL-based binary properties.


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
URLBinaryPropertyResolver()
           

 

Method Summary
protected  Map<String,Object> getDefaultContextValues()
          Returns a map of key/values that contain default values if/when their associated context keys are null or not provided.
protected  javax.servlet.http.HttpServletRequest getRequest(AttributeContext context)
           
protected  Set<String> getRequiredContextAttributes()
          Returns a collection of required AttributeContext keys.
protected  javax.servlet.http.HttpServletResponse getResponse(AttributeContext context)
           
protected  Map<String,Class<?>> getValidContextAttributeClasses()
          Used for validation of classes associated with context keys.

 

Methods inherited from class com.bea.content.manager.servlets.attribute.property.BinaryPropertyResolver
getBinaryResolver, resolveAttribute, 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

URLBinaryPropertyResolver

public URLBinaryPropertyResolver()

Method Detail

getRequiredContextAttributes

protected Set<String> getRequiredContextAttributes()
Description copied from class: com.bea.content.manager.servlets.attribute.impl.AbstractContentAttributeResolver
Returns a collection of required AttributeContext keys.

The returned value will be used to ensure that the proper context keys are set up in the AttributeContext.

This method must NOT return null. An empty Set is acceptable.

Overrides:
getRequiredContextAttributes in class BinaryPropertyResolver
Returns
A set of valid keys to validate against.

getValidContextAttributeClasses

protected Map<String,Class<?>> getValidContextAttributeClasses()
Description copied from class: com.bea.content.manager.servlets.attribute.impl.AbstractContentAttributeResolver
Used for validation of classes associated with context keys.

This method must NOT return null. An empty Map is acceptable.

Overrides:
getValidContextAttributeClasses in class BinaryPropertyResolver
Returns
Map<String,Class> of attributes and their expected classes.

getDefaultContextValues

protected Map<String,Object> getDefaultContextValues()
Description copied from class: com.bea.content.manager.servlets.attribute.impl.AbstractContentAttributeResolver
Returns a map of key/values that contain default values if/when their associated context keys are null or not provided.

This method must NOT return null. An empty Map is acceptable.

Overrides:
getDefaultContextValues in class BinaryPropertyResolver
Returns
Map<String,Object> of default values.

getRequest

protected javax.servlet.http.HttpServletRequest getRequest(AttributeContext context)

getResponse

protected javax.servlet.http.HttpServletResponse getResponse(AttributeContext context)

Skip navigation links


Copyright © 2010, Oracle. All rights reserved.