|
|||||||||
| 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.ConsumesRequestCondition
public class ConsumesRequestCondition
Represents a collection of consumes conditions, typically obtained from @RequestMapping.consumes().
RequestConditionFactory.parseConsumes(String...),
RequestConditionFactory.parseConsumes(String[], String[])| Nested Class Summary | |
|---|---|
protected static class |
MediaTypesRequestCondition.MediaTypeRequestCondition
|
| Constructor Summary | |
|---|---|
ConsumesRequestCondition()
Creates a default set of consumes request conditions. |
|
| Method Summary | |
|---|---|
ConsumesRequestCondition |
combine(ConsumesRequestCondition other)
Combines this collection of request condition with another. |
int |
compareTo(ConsumesRequestCondition other)
|
boolean |
equals(Object o)
|
protected Set<T> |
getConditions()
|
ConsumesRequestCondition |
getMatchingCondition(HttpServletRequest request)
Returns a new RequestCondition that contains all conditions of this key that match the request. |
Set<MediaType> |
getMediaTypes()
Returns all MediaTypes contained in this condition. |
protected List<T> |
getSortedConditions()
|
protected String |
getToStringInfix()
|
int |
hashCode()
|
boolean |
isEmpty()
|
boolean |
match(HttpServletRequest request)
Indicates whether this condition matches against the given servlet request. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConsumesRequestCondition()
| Method Detail |
|---|
public ConsumesRequestCondition getMatchingCondition(HttpServletRequest request)
RequestCondition that contains all conditions of this key that match the request.
request - the request
null if not all conditions matchpublic ConsumesRequestCondition combine(ConsumesRequestCondition other)
other, unless it is empty.
other - the condition to combine withpublic int compareTo(ConsumesRequestCondition other)
compareTo in interface Comparable<ConsumesRequestCondition>protected List<T> getSortedConditions()
public Set<MediaType> getMediaTypes()
MediaTypes contained in this condition.
public boolean match(HttpServletRequest request)
RequestCondition
request - the request
true if this condition matches the request; false otherwiseprotected String getToStringInfix()
protected Set<T> getConditions()
public boolean isEmpty()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||