org.richfaces.resource

## Class UserResourceWrapperImpl

- java.lang.Object
- - javax.faces.application.ViewResource
  - - javax.faces.application.Resource
    - - org.richfaces.resource.AbstractBaseResource
      - - org.richfaces.resource.AbstractCacheableResource
        - - org.richfaces.resource.BaseResourceWrapper<UserResource>
          - - org.richfaces.resource.UserResourceWrapperImpl

- All Implemented Interfaces:
    javax.faces.component.StateHolder, javax.faces.FacesWrapper<UserResource>, CacheableResource, ContentProducerResource, VersionedResource

      public class UserResourceWrapperImpl
      extends BaseResourceWrapper<UserResource>
      implements ContentProducerResource

  Author:
    Nick Belaevski

- - ### Field Summary

    - ### Fields inherited from class org.richfaces.resource.AbstractBaseResource

      `URL_PROTOCOL`

    - ### Fields inherited from class javax.faces.application.Resource

      `COMPONENT_RESOURCE_KEY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UserResourceWrapperImpl(UserResource resourceObject, boolean cacheable, boolean versioned)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `encode(javax.faces.context.FacesContext context)`
    `protected int` | `getContentLength(javax.faces.context.FacesContext context)`
    `String` | `getContentType()`
    `InputStream` | `getInputStream()`
    `protected Date` | `getLastModified(javax.faces.context.FacesContext context)` TODO optimize/review?
    `protected Map<String,String>` | `getWrappedResourceResponseHeaders()`

    - ### Methods inherited from class org.richfaces.resource.BaseResourceWrapper

      `getEntityTag, getExpires, getResponseHeaders, getTimeToLive, getVersion, getWrapped, isCacheable, isTransient, restoreState, saveState, setTransient`

    - ### Methods inherited from class org.richfaces.resource.AbstractCacheableResource

      `addCacheControlResponseHeaders, isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified, setCacheable, userAgentNeedsUpdate`

    - ### Methods inherited from class org.richfaces.resource.AbstractBaseResource

      `addNoCacheResponseHeaders, getClassLoader, getRequestPath, getURL`

    - ### Methods inherited from class javax.faces.application.Resource

      `getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### UserResourceWrapperImpl

          public UserResourceWrapperImpl(UserResource resourceObject,
                                 boolean cacheable,
                                 boolean versioned)

  - ### Method Detail

    - #### getInputStream

          public InputStream getInputStream()
                                     throws IOException

      Specified by:
        `getInputStream` in class `javax.faces.application.Resource`
      Throws:
        `IOException`

    - #### getWrappedResourceResponseHeaders

          protected Map<String,String> getWrappedResourceResponseHeaders()

      Specified by:
        `getWrappedResourceResponseHeaders` in class `BaseResourceWrapper<UserResource>`

    - #### getContentType

          public String getContentType()

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

    - #### getContentLength

          protected int getContentLength(javax.faces.context.FacesContext context)

      Overrides:
        `getContentLength` in class `AbstractBaseResource`

    - #### getLastModified

          protected Date getLastModified(javax.faces.context.FacesContext context)

      Description copied from class: `AbstractBaseResource`
      TODO optimize/review?
      Overrides:
        `getLastModified` in class `AbstractBaseResource`
      Returns:
        Returns the lastModified.

    - #### encode

          public void encode(javax.faces.context.FacesContext context)
                      throws IOException

      Specified by:
        `encode` in interface `ContentProducerResource`
      Throws:
        `IOException`

Copyright © 2014 JBoss by Red Hat. All rights reserved.