|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.web.servlet.mvc.method.condition.RequestConditionFactory
public abstract class RequestConditionFactory
Factory for RequestCondition objects.
| Constructor Summary | |
|---|---|
RequestConditionFactory()
|
|
| Method Summary | |
|---|---|
static ConsumesRequestCondition |
parseConsumes(String... consumes)
Parses the given consumes, and returns them as a single request condition. |
static ConsumesRequestCondition |
parseConsumes(String[] consumes,
String[] headers)
Parses the given consumes and Content-Type headers, and returns them as a single request condition. |
static HeadersRequestCondition |
parseHeaders(String... headers)
Parses the given headers, and returns them as a single request condition. |
static RequestMethodsRequestCondition |
parseMethods(RequestMethod... methods)
Parses the given request methods, and returns them as a single request condition. |
static ParamsRequestCondition |
parseParams(String... params)
Parses the given parameters, and returns them as a single request condition. |
static ProducesRequestCondition |
parseProduces(String... produces)
Parses the given produces, and returns them as a single request condition. |
static ProducesRequestCondition |
parseProduces(String[] produces,
String[] headers)
Parses the given produces and Accept headers, and returns them as a single request condition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestConditionFactory()
| Method Detail |
|---|
public static RequestMethodsRequestCondition parseMethods(RequestMethod... methods)
methods - the methods
RequestMapping.method()public static ParamsRequestCondition parseParams(String... params)
params - the parameters
RequestMapping.params()public static HeadersRequestCondition parseHeaders(String... headers)
headers - the headers
RequestMapping.headers()public static ConsumesRequestCondition parseConsumes(String... consumes)
consumes - the consumes
RequestMapping.consumes()
public static ConsumesRequestCondition parseConsumes(String[] consumes,
String[] headers)
Content-Type headers, and returns them as a single request condition. Only
Content-Type headers will be used, all other headers will be ignored.
consumes - the consumesheaders - the headers
RequestMapping.consumes()public static ProducesRequestCondition parseProduces(String... produces)
produces - the produces
RequestMapping.produces()
public static ProducesRequestCondition parseProduces(String[] produces,
String[] headers)
Accept headers, and returns them as a single request condition. Only Accept headers will be used, all other headers will be ignored.
produces - the consumesheaders - the headers
RequestMapping.produces()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||