|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.share.util.CaboHttpUtils
public class CaboHttpUtils
Utilities for working with HTTP.
Method Summary | |
---|---|
static java.lang.String[] |
decodeQValueString(java.lang.String string)
Given a string that uses q-value encodings, returns a sorted array of strings from most-preferred to least. |
static java.lang.String |
decodeRequestParameter(java.lang.String string,
java.lang.String encoding,
byte[] buffer)
Given a parameter string and the name of a character encoding, fixes the string. |
static void |
validateEncoding(java.lang.String encoding)
Throws an UnsupportedEncodingException if the provided encoding is not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void validateEncoding(java.lang.String encoding) throws java.io.UnsupportedEncodingException
encoding
- the name of a character encoding
java.io.UnsupportedEncodingException
public static final java.lang.String decodeRequestParameter(java.lang.String string, java.lang.String encoding, byte[] buffer) throws java.io.UnsupportedEncodingException
string
- the stringencoding
- the name of a character encodingbuffer
- an optional byte buffer, for reuse; pass null
if you're not calling this function repeatedly
java.io.UnsupportedEncodingException
public static java.lang.String[] decodeQValueString(java.lang.String string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |