org.richfaces.resource

## Class ResourceUtils

- java.lang.Object
- - org.richfaces.resource.ResourceUtils

-     public final class ResourceUtils
      extends Object

  Since:
    4.0
  Author:
    Nick Belaevski

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `ResourceUtils.NamingContainerDataHolder`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `copyStreamContent(InputStream is, OutputStream os)`
    `static byte[]` | `decodeBytesData(String encodedData)`
    `static Object` | `decodeObjectData(String encodedData)`
    `static String` | `decodeResourceURL(javax.faces.context.FacesContext context)`
    `protected static byte[]` | `decrypt(byte[] src)`
    `static String` | `encodeBytesData(byte[] data)`
    `static String` | `encodeJSFURL(javax.faces.context.FacesContext context, String url)`
    `static String` | `encodeObjectData(Object data)`
    `static String` | `encodeURIQueryPart(String s)`
    `protected static byte[]` | `encrypt(byte[] src)`
    `static String` | `formatHttpDate(Object object)`
    `static String` | `formatTag(String eTag)`
    `static String` | `formatWeakTag(String eTag)`
    `static Charset` | `getCharsetFromContentType(String contentType)`
    `static String` | `getMappingForRequest(javax.faces.context.FacesContext context)`
    `static boolean` | `matchTag(String eTag, String eTagHeaderValue)`
    `static long` | `millisToSecond(long millisecond)`
    `static Date` | `parseHttpDate(String s)`
    `static Map<String,String>` | `parseResourceParameters(String resourceName)`
    `static void` | `restoreResourceState(javax.faces.context.FacesContext context, Object resource, Object state)`
    `static Object` | `saveResourceState(javax.faces.context.FacesContext context, Object resource)`
    `static long` | `secondToMillis(long second)`

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

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

- - ### Method Detail

    - #### getMappingForRequest

          public static String getMappingForRequest(javax.faces.context.FacesContext context)

    - #### parseHttpDate

          public static Date parseHttpDate(String s)

    - #### formatHttpDate

          public static String formatHttpDate(Object object)

    - #### encrypt

          protected static byte[] encrypt(byte[] src)

    - #### decrypt

          protected static byte[] decrypt(byte[] src)

    - #### decodeBytesData

          public static byte[] decodeBytesData(String encodedData)

    - #### decodeObjectData

          public static Object decodeObjectData(String encodedData)

    - #### encodeBytesData

          public static String encodeBytesData(byte[] data)

    - #### encodeObjectData

          public static String encodeObjectData(Object data)

    - #### encodeJSFURL

          public static String encodeJSFURL(javax.faces.context.FacesContext context,
                                            String url)

    - #### parseResourceParameters

          public static Map<String,String> parseResourceParameters(String resourceName)

    - #### decodeResourceURL

          public static String decodeResourceURL(javax.faces.context.FacesContext context)

    - #### copyStreamContent

          public static void copyStreamContent(InputStream is,
                                               OutputStream os)
                                        throws IOException

      Throws:
        `IOException`

    - #### encodeURIQueryPart

          public static String encodeURIQueryPart(String s)

    - #### saveResourceState

          public static Object saveResourceState(javax.faces.context.FacesContext context,
                                                 Object resource)

    - #### restoreResourceState

          public static void restoreResourceState(javax.faces.context.FacesContext context,
                                                  Object resource,
                                                  Object state)

    - #### getCharsetFromContentType

          public static Charset getCharsetFromContentType(String contentType)

    - #### formatWeakTag

          public static String formatWeakTag(String eTag)

    - #### formatTag

          public static String formatTag(String eTag)

    - #### matchTag

          public static boolean matchTag(String eTag,
                                         String eTagHeaderValue)

    - #### millisToSecond

          public static long millisToSecond(long millisecond)

    - #### secondToMillis

          public static long secondToMillis(long second)

Copyright © 2016 JBoss by Red Hat. All Rights Reserved.