public class UrlBinding extends Object
UrlBinding
annotation on an ActionBean class.| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends ActionBean> |
beanType |
protected List<Object> |
components |
protected List<UrlBindingParameter> |
parameters |
protected String |
path |
protected String |
suffix |
| Constructor and Description |
|---|
UrlBinding(Class<? extends ActionBean> beanType,
String path)
Create a new instance that takes no parameters.
|
UrlBinding(Class<? extends ActionBean> beanType,
String path,
List<Object> components)
Create a new instance with all its members.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Class<? extends ActionBean> |
getBeanType()
Get the
ActionBean class to which this binding applies. |
List<Object> |
getComponents()
Get the list of components that comprise this binding.
|
List<UrlBindingParameter> |
getParameters()
Get the list of parameters for this binding.
|
String |
getPath()
Get the path for this binding.
|
String |
getSuffix()
If this binding includes one or more parameters and the last component is a
String,
then this method will return that last component. |
int |
hashCode() |
String |
toString() |
protected Class<? extends ActionBean> beanType
protected String path
protected String suffix
protected List<UrlBindingParameter> parameters
public UrlBinding(Class<? extends ActionBean> beanType, String path, List<Object> components)
beanType - the ActionBean class to which this binding appliespath - the path to which the action is mappedcomponents - list of literal strings that separate the parameterspublic UrlBinding(Class<? extends ActionBean> beanType, String path)
beanType - path - public Class<? extends ActionBean> getBeanType()
ActionBean class to which this binding applies.public List<Object> getComponents()
public List<UrlBindingParameter> getParameters()
public String getPath()
public String getSuffix()
String,
then this method will return that last component. Otherwise, it returns null.© Copyright 2005-2006, Stripes Development Team.