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, setTransientaddCacheControlResponseHeaders, isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified, setCacheable, userAgentNeedsUpdateaddNoCacheResponseHeaders, getClassLoader, getContentLength, getRequestPath, getURLpublic Java2DUserResourceWrapperImpl(org.richfaces.resource.Java2DUserResource resourceObject,
boolean cacheable,
boolean versioned)
public InputStream getInputStream() throws IOException
getInputStream in class javax.faces.application.ResourceIOExceptionprotected void write(BufferedImage image, String formatName, ImageOutputStream imageOutputStream) throws IOException
IOExceptionpublic String getContentType()
getContentType in class javax.faces.application.Resourceprotected 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)
AbstractBaseResourcegetLastModified in class AbstractBaseResourceprotected void paintAndWrite(ImageOutputStream outputStream) throws IOException
IOExceptionprotected Graphics2D createGraphics(BufferedImage image)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.