public final class ResourceUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceUtils.NamingContainerDataHolder |
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) |
public static String getMappingForRequest(javax.faces.context.FacesContext context)
protected static byte[] encrypt(byte[] src)
protected static byte[] decrypt(byte[] src)
public static byte[] decodeBytesData(String encodedData)
public static String encodeBytesData(byte[] data)
public static String encodeJSFURL(javax.faces.context.FacesContext context, String url)
public static Map<String,String> parseResourceParameters(String resourceName)
public static String decodeResourceURL(javax.faces.context.FacesContext context)
public static void copyStreamContent(InputStream is, OutputStream os) throws IOException
IOException
public static Object saveResourceState(javax.faces.context.FacesContext context, Object resource)
public static void restoreResourceState(javax.faces.context.FacesContext context, Object resource, Object state)
public static long millisToSecond(long millisecond)
public static long secondToMillis(long second)
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.