| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.component.html.util.StreamingResourceHandler
public class StreamingResourceHandler
Class whose instances represent a virtual resource which will be collected by the StreamingResourceHandler.
| Constructor Summary | |
|---|---|
| StreamingResourceHandler(String resourceName)Constructor. | |
| Method Summary | |
|---|---|
|  Class | getResourceLoaderClass()Return a Class object which can decode the url generated by this class in the getResourceUri method and use that info to locate the resource data represented by this object. | 
|  String | getResourceUri(javax.faces.context.FacesContext context)Return a URL that the browser can later submit to retrieve the resource handled by this instance. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.apache.myfaces.renderkit.html.util.ResourceHandler | 
|---|
| equals, hashCode | 
| Constructor Detail | 
|---|
public StreamingResourceHandler(String resourceName)
resourceName - is the name of a file that can be found in dir
  "resource/{resourceName} relative to the location of the specified
  component class in the classpath.| Method Detail | 
|---|
public Class getResourceLoaderClass()
getResourceLoaderClass in interface ResourceHandlerorg.apache.myfaces.shared.renderkit.html.util.ResourceHandler#getResourceLoaderClass()public String getResourceUri(javax.faces.context.FacesContext context)
The emitted URL is of form:
   {partial.class.name}/{resourceName}
 
 where partial.class.name is the name of the base class specified in the
 constructor, and resourceName is the resource specified in the constructor.
getResourceUri in interface ResourceHandlerorg.apache.myfaces.shared.renderkit.html.util.ResourceHandler#getResourceUri(javax.faces.context.FacesContext)| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||