org.ajax4jsf.resource
Class UserResource
java.lang.Object
org.ajax4jsf.resource.InternetResourceBase
org.ajax4jsf.resource.UserResource
- All Implemented Interfaces:
- InternetResource
public class UserResource
- extends InternetResourceBase
- Author:
- shura
Constructor Summary |
UserResource(boolean cacheable,
boolean session,
java.lang.String mime)
|
Methods inherited from class org.ajax4jsf.resource.InternetResourceBase |
deserializeData, encode, encode, encodeBegin, encodeEnd, getContentLength, getKey, getProperty, getRenderer, getResourceAsStream, getUri, isCacheable, isSessionAware, restoreData, sendHeaders, setCacheable, setContentLength, setExpired, setKey, setLastModified, setProperty, setRenderer, setSessionAware |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserResource
public UserResource(boolean cacheable,
boolean session,
java.lang.String mime)
getContentType
public java.lang.String getContentType(ResourceContext resourceContext)
- Specified by:
getContentType
in interface InternetResource
- Overrides:
getContentType
in class InternetResourceBase
- Returns:
- Returns the contentType.
setContentType
public void setContentType(java.lang.String contentType)
- Parameters:
contentType
- The contentType to set.
getDataToStore
public java.lang.Object getDataToStore(javax.faces.context.FacesContext context,
java.lang.Object data)
- Description copied from class:
InternetResourceBase
- Template method to construct resource-specific data ( to store in
resource URI ). If resource must store any data in session or other
cache, it must be done here. Since lightweight realisation, information
for restore such data muct be returned by this method.
- Overrides:
getDataToStore
in class InternetResourceBase
- Parameters:
context
- -
current faces context.data
- -
data for build information, usually current
UIComponent
- Returns:
- - any
Serializable
object, or null.
send
public void send(ResourceContext context)
throws java.io.IOException
- Specified by:
send
in interface InternetResource
- Overrides:
send
in class InternetResourceBase
- Throws:
java.io.IOException
getLastModified
public java.util.Date getLastModified(ResourceContext resourceContext)
- Specified by:
getLastModified
in interface InternetResource
- Overrides:
getLastModified
in class InternetResourceBase
getExpired
public long getExpired(ResourceContext resourceContext)
- Specified by:
getExpired
in interface InternetResource
- Overrides:
getExpired
in class InternetResourceBase
requireFacesContext
public boolean requireFacesContext()
- Specified by:
requireFacesContext
in interface InternetResource
- Overrides:
requireFacesContext
in class InternetResourceBase
Copyright © 2010. All Rights Reserved.