/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return toString().hashCode(); }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return toString().hashCode(); }
/** * Creates a request parameter configured with the values from this image scaler, also * appends a <code>'?'</code> char as a prefix so that this may be directly appended to an image URL.<p> * * This can be appended to an image request in order to apply image scaling parameters.<p> * * @return a request parameter configured with the values from this image scaler */ public String toRequestParam() { StringBuffer result = new StringBuffer(128); result.append('?'); result.append(PARAM_SCALE); result.append('='); result.append(toString()); return result.toString(); }
/** * Creates a request parameter configured with the values from this image scaler, also * appends a <code>'?'</code> char as a prefix so that this may be directly appended to an image URL.<p> * * This can be appended to an image request in order to apply image scaling parameters.<p> * * @return a request parameter configured with the values from this image scaler */ public String toRequestParam() { StringBuffer result = new StringBuffer(128); result.append('?'); result.append(PARAM_SCALE); result.append('='); result.append(toString()); return result.toString(); }
CmsProperty p = new CmsProperty(CmsPropertyDefinition.PROPERTY_IMAGE_SIZE, null, scaler.toString());
CmsProperty p = new CmsProperty(CmsPropertyDefinition.PROPERTY_IMAGE_SIZE, null, scaler.toString());
/** * Returns the HTML for an <code><img src="..." /></code> tag that includes the given image scaling parameters.<p> * * @param target the target URI of the file in the OpenCms VFS * @param scaler the image scaler to use for scaling the image * @param attributes a map of additional HTML attributes that are added to the output * @param partialTag if <code>true</code>, the opening <code><img</code> and closing <code> /></code> is omitted * * @return the HTML for an <code><img src></code> tag that includes the given image scaling parameters */ public String img(String target, CmsImageScaler scaler, Map<String, String> attributes, boolean partialTag) { try { return CmsJspTagImage.imageTagAction(target, scaler, attributes, partialTag, getRequest()); } catch (Throwable t) { handleException(t); } CmsMessageContainer msgContainer = Messages.get().container( Messages.GUI_ERR_IMG_SCALE_2, target, scaler == null ? "null" : scaler.toString()); return getMessage(msgContainer); }
/** * Returns the HTML for an <code><img src="..." /></code> tag that includes the given image scaling parameters.<p> * * @param target the target URI of the file in the OpenCms VFS * @param scaler the image scaler to use for scaling the image * @param attributes a map of additional HTML attributes that are added to the output * @param partialTag if <code>true</code>, the opening <code><img</code> and closing <code> /></code> is omitted * * @return the HTML for an <code><img src></code> tag that includes the given image scaling parameters */ public String img(String target, CmsImageScaler scaler, Map attributes, boolean partialTag) { try { return CmsJspTagImage.imageTagAction(target, scaler, attributes, partialTag, getRequest()); } catch (Throwable t) { handleException(t); } CmsMessageContainer msgContainer = Messages.get().container( Messages.GUI_ERR_IMG_SCALE_2, target, scaler == null ? "null" : scaler.toString()); return getMessage(msgContainer); }
false); if (prop.isNullProperty() || !prop.getValue().equals(scaler.toString())) { CmsPropertyDefinition.PROPERTY_IMAGE_SIZE, null, scaler.toString()); } else { prop.setResourceValue(scaler.toString()); Messages.get().container(Messages.RPT_IMAGE_SIZE_UPDATE_1, scaler.toString()), I_CmsReport.FORMAT_DEFAULT); Messages.get().container(Messages.RPT_IMAGE_SIZE_SKIP_1, scaler.toString()), I_CmsReport.FORMAT_DEFAULT);
false); if (prop.isNullProperty() || !prop.getValue().equals(scaler.toString())) { CmsPropertyDefinition.PROPERTY_IMAGE_SIZE, null, scaler.toString()); } else { prop.setResourceValue(scaler.toString()); Messages.get().container(Messages.RPT_IMAGE_SIZE_UPDATE_1, scaler.toString()), I_CmsReport.FORMAT_DEFAULT); Messages.get().container(Messages.RPT_IMAGE_SIZE_SKIP_1, scaler.toString()), I_CmsReport.FORMAT_DEFAULT);
throws IOException, CmsException { String cacheParam = scaler.isValid() ? scaler.toString() : null; String cacheName = m_vfsDiskCache.getCacheName(resource, cacheParam); byte[] content = m_vfsDiskCache.getCacheContent(cacheName);
throws IOException, CmsException { String cacheParam = scaler.isValid() ? scaler.toString() : null; String cacheName = m_vfsDiskCache.getCacheName(resource, cacheParam); byte[] content = m_vfsDiskCache.getCacheContent(cacheName);