public class MediaOutputResource extends AbstractUserResource implements javax.faces.component.StateHolder, CacheableResource
Constructor and Description |
---|
MediaOutputResource() |
Modifier and Type | Method and Description |
---|---|
void |
encode(javax.faces.context.FacesContext facesContext) |
String |
getContentType() |
String |
getEntityTag(javax.faces.context.FacesContext context) |
Date |
getExpires(javax.faces.context.FacesContext context) |
Map<String,String> |
getResponseHeaders() |
int |
getTimeToLive(javax.faces.context.FacesContext context) |
void |
initialize() |
boolean |
isCacheable(javax.faces.context.FacesContext context) |
boolean |
isTransient() |
void |
restoreState(javax.faces.context.FacesContext context,
Object stateObject) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setCacheable(boolean cacheable) |
void |
setContentType(String contentType) |
void |
setTransient(boolean newTransientValue) |
getContentLength, getLastModified
public void encode(javax.faces.context.FacesContext facesContext) throws IOException
encode
in interface ContentProducerResource
IOException
public boolean isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void setTransient(boolean newTransientValue)
setTransient
in interface javax.faces.component.StateHolder
public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
public void restoreState(javax.faces.context.FacesContext context, Object stateObject)
restoreState
in interface javax.faces.component.StateHolder
public void initialize()
public boolean isCacheable(javax.faces.context.FacesContext context)
isCacheable
in interface CacheableResource
public void setCacheable(boolean cacheable)
public Date getExpires(javax.faces.context.FacesContext context)
getExpires
in interface CacheableResource
public int getTimeToLive(javax.faces.context.FacesContext context)
getTimeToLive
in interface CacheableResource
public String getEntityTag(javax.faces.context.FacesContext context)
getEntityTag
in interface CacheableResource
public String getContentType()
getContentType
in interface UserResource
public void setContentType(String contentType)
public Map<String,String> getResponseHeaders()
getResponseHeaders
in interface UserResource
getResponseHeaders
in class AbstractUserResource
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.