com.liferay.faces.bridge.application
Class ResourceImpl

java.lang.Object
  extended by javax.faces.application.Resource
      extended by javax.faces.application.ResourceWrapper
          extended by com.liferay.faces.bridge.application.ResourceImpl
All Implemented Interfaces:
Serializable, javax.faces.FacesWrapper<javax.faces.application.Resource>

public class ResourceImpl
extends javax.faces.application.ResourceWrapper
implements Serializable

This class decorates the resource implementation from the JSF implementation.

Author:
Neil Griffin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.faces.application.Resource
COMPONENT_RESOURCE_KEY
 
Constructor Summary
ResourceImpl()
          This constructor is used by Mojarra via reflection during state saving.
ResourceImpl(javax.faces.application.Resource wrappedResource)
           
 
Method Summary
 String getContentType()
          Since this method is not supplied by the ResourceWrapper class it has to be implemented here.
 String getLibraryName()
          Since this method is not supplied by the ResourceWrapper class it has to be implemented here.
 String getRequestPath()
           
 String getResourceName()
          Since this method is not supplied by the ResourceWrapper class it has to be implemented here.
 javax.faces.application.Resource getWrapped()
           
 void setContentType(String contentType)
          Since this method is not supplied by the ResourceWrapper class it has to be implemented here.
 void setLibraryName(String libraryName)
          Since this method is not supplied by the ResourceWrapper class it has to be implemented here.
 void setResourceName(String resourceName)
          Since this method is not supplied by the ResourceWrapper class it has to be implemented here.
 String toString()
          Since this method is not supplied by the ResourceWrapper class it has to be implemented here.
 boolean userAgentNeedsUpdate(javax.faces.context.FacesContext facesContext)
          This method determines whether or not the browser (user agent) requesting this resource needs an update, which can ultimately save bandwidth and be a big performance improvement.
 
Methods inherited from class javax.faces.application.ResourceWrapper
getInputStream, getResponseHeaders, getURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceImpl

public ResourceImpl()
This constructor is used by Mojarra via reflection during state saving.


ResourceImpl

public ResourceImpl(javax.faces.application.Resource wrappedResource)
Method Detail

toString

public String toString()
Since this method is not supplied by the ResourceWrapper class it has to be implemented here.

Overrides:
toString in class javax.faces.application.Resource

userAgentNeedsUpdate

public boolean userAgentNeedsUpdate(javax.faces.context.FacesContext facesContext)
This method determines whether or not the browser (user agent) requesting this resource needs an update, which can ultimately save bandwidth and be a big performance improvement.

Overrides:
userAgentNeedsUpdate in class javax.faces.application.ResourceWrapper

getContentType

public String getContentType()
Since this method is not supplied by the ResourceWrapper class it has to be implemented here.

Overrides:
getContentType in class javax.faces.application.Resource

setContentType

public void setContentType(String contentType)
Since this method is not supplied by the ResourceWrapper class it has to be implemented here.

Overrides:
setContentType in class javax.faces.application.Resource

getLibraryName

public String getLibraryName()
Since this method is not supplied by the ResourceWrapper class it has to be implemented here.

Overrides:
getLibraryName in class javax.faces.application.Resource

setLibraryName

public void setLibraryName(String libraryName)
Since this method is not supplied by the ResourceWrapper class it has to be implemented here.

Overrides:
setLibraryName in class javax.faces.application.Resource

getRequestPath

public String getRequestPath()
Overrides:
getRequestPath in class javax.faces.application.ResourceWrapper

getResourceName

public String getResourceName()
Since this method is not supplied by the ResourceWrapper class it has to be implemented here.

Overrides:
getResourceName in class javax.faces.application.Resource

setResourceName

public void setResourceName(String resourceName)
Since this method is not supplied by the ResourceWrapper class it has to be implemented here.

Overrides:
setResourceName in class javax.faces.application.Resource

getWrapped

public javax.faces.application.Resource getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.Resource>
Overrides:
getWrapped in class javax.faces.application.ResourceWrapper


Copyright © 2014 Liferay, Inc.. All Rights Reserved.