public final class JoseUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
checkContentType(String contentType,
String defaultType) |
static byte[] |
decode(String encoded) |
static String |
decodeToString(String encoded) |
static String |
expandContentType(String contentType) |
static URL |
getClasspathResourceURL(String path,
Class<?> callingClass,
Bus bus) |
static String[] |
getCompactParts(String compactContent) |
static <T> T |
getResource(String path,
Class<T> resourceClass,
Bus bus) |
static InputStream |
getResourceStream(String loc,
Bus bus) |
static URL |
getResourceURL(String loc,
Bus bus) |
static Properties |
loadProperties(String propertiesLocation,
Bus bus) |
static void |
setJoseContextProperty(JoseHeaders headers) |
static void |
setJoseMessageContextProperty(JoseHeaders headers,
String value) |
static void |
setMessageContextProperty(JoseHeaders headers) |
static void |
traceHeaders(JoseHeaders headers) |
static boolean |
validateCriticalHeaders(JoseHeaders headers) |
static void |
validateRequestContextProperty(JoseHeaders headers) |
public static void setJoseContextProperty(JoseHeaders headers)
public static void setJoseMessageContextProperty(JoseHeaders headers, String value)
public static void setMessageContextProperty(JoseHeaders headers)
public static void validateRequestContextProperty(JoseHeaders headers)
public static byte[] decode(String encoded)
public static boolean validateCriticalHeaders(JoseHeaders headers)
public static void traceHeaders(JoseHeaders headers)
public static InputStream getResourceStream(String loc, Bus bus) throws Exception
Exception
public static URL getResourceURL(String loc, Bus bus) throws Exception
Exception
public static URL getClasspathResourceURL(String path, Class<?> callingClass, Bus bus)
public static Properties loadProperties(String propertiesLocation, Bus bus) throws Exception
Exception
Apache CXF