org.apache.myfaces.shared.resource
Class ResourceImpl

java.lang.Object
  extended by javax.faces.application.ViewResource
      extended by javax.faces.application.Resource
          extended by org.apache.myfaces.shared.resource.ResourceImpl
All Implemented Interfaces:
ContractResource

public class ResourceImpl
extends Resource
implements ContractResource

Default implementation for resources


Field Summary
protected static String JAVAX_FACES_LIBRARY_NAME
           
protected static String JSF_JS_RESOURCE_NAME
           
 
Fields inherited from class javax.faces.application.Resource
COMPONENT_RESOURCE_KEY
 
Fields inherited from interface org.apache.myfaces.shared.resource.ContractResource
CONTRACT_SELECTED
 
Constructor Summary
ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType)
           
ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType, URL url, String requestPath)
           
 
Method Summary
 String getContractName()
           
 InputStream getInputStream()
           
 String getRequestPath()
           
protected  ResourceHandlerSupport getResourceHandlerSupport()
           
 ResourceLoader getResourceLoader()
           
protected  ResourceMeta getResourceMeta()
           
 Map<String,String> getResponseHeaders()
           
 URL getURL()
           
 boolean isContractResource()
           
 boolean userAgentNeedsUpdate(FacesContext context)
           
 
Methods inherited from class javax.faces.application.Resource
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JAVAX_FACES_LIBRARY_NAME

protected static final String JAVAX_FACES_LIBRARY_NAME
See Also:
Constant Field Values

JSF_JS_RESOURCE_NAME

protected static final String JSF_JS_RESOURCE_NAME
See Also:
Constant Field Values
Constructor Detail

ResourceImpl

public ResourceImpl(ResourceMeta resourceMeta,
                    ResourceLoader resourceLoader,
                    ResourceHandlerSupport support,
                    String contentType)

ResourceImpl

public ResourceImpl(ResourceMeta resourceMeta,
                    ResourceLoader resourceLoader,
                    ResourceHandlerSupport support,
                    String contentType,
                    URL url,
                    String requestPath)
Method Detail

getResourceLoader

public ResourceLoader getResourceLoader()

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in class Resource
Throws:
IOException

getRequestPath

public String getRequestPath()
Specified by:
getRequestPath in class Resource

getResponseHeaders

public Map<String,String> getResponseHeaders()
Specified by:
getResponseHeaders in class Resource

getURL

public URL getURL()
Specified by:
getURL in class Resource

userAgentNeedsUpdate

public boolean userAgentNeedsUpdate(FacesContext context)
Specified by:
userAgentNeedsUpdate in class Resource

getResourceHandlerSupport

protected ResourceHandlerSupport getResourceHandlerSupport()

getResourceMeta

protected ResourceMeta getResourceMeta()

isContractResource

public boolean isContractResource()
Specified by:
isContractResource in interface ContractResource

getContractName

public String getContractName()
Specified by:
getContractName in interface ContractResource


Copyright © 2014 The Apache Software Foundation. All rights reserved.