|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalio.util.HttpUtils
public class HttpUtils
Utility class for HTTP protocol
Constructor Summary | |
---|---|
HttpUtils()
|
Method Summary | |
---|---|
static boolean |
accepts(java.lang.String acceptHeader,
java.lang.String toAccept)
Returns true if the given accept header accepts the given value. |
static boolean |
matches(java.lang.String matchHeader,
java.lang.String toMatch)
Returns true if the given match header matches the given value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpUtils()
Method Detail |
---|
public static boolean accepts(java.lang.String acceptHeader, java.lang.String toAccept)
acceptHeader
- The accept header.toAccept
- The value to be accepted.
public static boolean matches(java.lang.String matchHeader, java.lang.String toMatch)
matchHeader
- The match header.toMatch
- The value to be matched.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |