public class RestContractItem
extends java.lang.Object
| Constructor and Description |
|---|
RestContractItem(java.lang.String pattern)
Creates a new item encapsulating the given pattern and the default verb,
"POST". |
RestContractItem(java.lang.String pattern,
java.lang.String verb)
Creates a new item encapsulating the given pattern and verb.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPattern()
Gets the pattern corresponding to this route, e.g.
|
java.lang.String |
getVerb()
Gets the verb corresponding to this route, e.g.
|
public RestContractItem(java.lang.String pattern)
"POST".pattern - The pattern corresponding to this route, e.g.
"/widgets/:id".public RestContractItem(java.lang.String pattern,
java.lang.String verb)
pattern - The pattern corresponding to this route, e.g.
"/widgets/:id".verb - The verb corresponding to this route, e.g.
"GET".