public class Java2DUserResourceWrapperImpl extends BaseResourceWrapper<org.richfaces.resource.Java2DUserResource>
URL_PROTOCOL
Constructor and Description |
---|
Java2DUserResourceWrapperImpl(org.richfaces.resource.Java2DUserResource resourceObject,
boolean cacheable,
boolean versioned) |
Modifier and Type | Method and Description |
---|---|
protected Graphics2D |
createGraphics(BufferedImage image) |
protected Integer |
decodeColor(String value) |
protected Integer |
getColorValueParameter(javax.faces.context.FacesContext context,
String name,
boolean useDefault) |
String |
getContentType() |
protected Integer |
getHeight(javax.faces.context.FacesContext context,
String heightParamName) |
InputStream |
getInputStream() |
protected Date |
getLastModified(javax.faces.context.FacesContext context)
TODO optimize/review?
|
protected String |
getValueParameter(javax.faces.context.FacesContext context,
String name) |
protected Map<String,String> |
getWrappedResourceResponseHeaders() |
protected void |
paintAndWrite(ImageOutputStream outputStream) |
protected void |
write(BufferedImage image,
String formatName,
ImageOutputStream imageOutputStream) |
getEntityTag, getExpires, getResponseHeaders, getTimeToLive, getVersion, getWrapped, isCacheable, isTransient, restoreState, saveState, setTransient
addCacheControlResponseHeaders, isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified, setCacheable, userAgentNeedsUpdate
addNoCacheResponseHeaders, getClassLoader, getContentLength, getRequestPath, getURL
public Java2DUserResourceWrapperImpl(org.richfaces.resource.Java2DUserResource resourceObject, boolean cacheable, boolean versioned)
public InputStream getInputStream() throws IOException
getInputStream
in class javax.faces.application.Resource
IOException
protected void write(BufferedImage image, String formatName, ImageOutputStream imageOutputStream) throws IOException
IOException
public String getContentType()
getContentType
in class javax.faces.application.Resource
protected String getValueParameter(javax.faces.context.FacesContext context, String name)
protected Integer getColorValueParameter(javax.faces.context.FacesContext context, String name, boolean useDefault)
protected Integer getHeight(javax.faces.context.FacesContext context, String heightParamName)
protected Map<String,String> getWrappedResourceResponseHeaders()
getWrappedResourceResponseHeaders
in class BaseResourceWrapper<org.richfaces.resource.Java2DUserResource>
protected Date getLastModified(javax.faces.context.FacesContext context)
AbstractBaseResource
getLastModified
in class AbstractBaseResource
protected void paintAndWrite(ImageOutputStream outputStream) throws IOException
IOException
protected Graphics2D createGraphics(BufferedImage image)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.