Package io.microsphere.spring.web.rule
Class AbstractWebRequestRule<T>
java.lang.Object
io.microsphere.spring.web.rule.AbstractWebRequestRule<T>
- All Implemented Interfaces:
WebRequestRule
- Direct Known Subclasses:
WebRequestConsumesRule
,WebRequestHeadersRule
,WebRequestMethodsRule
,WebRequestParamsRule
,WebRequestPattensRule
,WebRequestProducesRule
Abstract
WebRequestRule
- Since:
- 1.0.0
- Author:
- Mercy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract Collection<T>
Return the discrete items a request condition is composed of.protected abstract String
The notation to use when printing discrete items of content.int
hashCode()
boolean
isEmpty()
Indicates whether this condition is empty, i.e. whether it contains any discrete items.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.microsphere.spring.web.rule.WebRequestRule
matches
-
Constructor Details
-
AbstractWebRequestRule
public AbstractWebRequestRule()
-
-
Method Details
-
isEmpty
public boolean isEmpty()Indicates whether this condition is empty, i.e. whether it contains any discrete items.- Returns:
true
if empty;false
otherwise
-
getContent
Return the discrete items a request condition is composed of.For example URL patterns, HTTP request methods, param expressions, etc.
- Returns:
- a collection of objects (never
null
)
-
getToStringInfix
The notation to use when printing discrete items of content.For example
" || "
for URL patterns or" && "
for param expressions. -
equals
-
hashCode
public int hashCode() -
toString
-