|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.j2ep.model.AllowedMethodHandler
public class AllowedMethodHandler
A utility class that will be used throughout the project to process headers to filter out those not allowed by the proxy.
Constructor Summary | |
---|---|
AllowedMethodHandler()
|
Method Summary | |
---|---|
static java.lang.String |
getAllowHeader()
Returns the allow methods for this proxy. |
static boolean |
methodAllowed(org.apache.commons.httpclient.HttpMethod method)
Checks the method to see if it's allowed |
static boolean |
methodAllowed(java.lang.String method)
Will check if the specified method is allowed by looking if it is included in the allowedMethods. |
static java.lang.String |
processAllowHeader(java.lang.String allowSent)
Will go through all the methods sent in checking to see that the method is allowed. |
static void |
setAllowedMethods(java.lang.String allowed)
Will set the allowed methods, both by setting the string and also by adding all the methods to the set of allowed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AllowedMethodHandler()
Method Detail |
---|
public static java.lang.String processAllowHeader(java.lang.String allowSent)
allowSent
- The header returned by the server
public static java.lang.String getAllowHeader()
public static boolean methodAllowed(java.lang.String method)
method
- The method that is checked
public static boolean methodAllowed(org.apache.commons.httpclient.HttpMethod method)
method
- The method that is checked
methodAllowed(String)
public static void setAllowedMethods(java.lang.String allowed)
allowed
- The list of allowed methods, should be comma separated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |