|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.controller.UrlBinding
public class UrlBinding
Represents a URL binding as declared by a UrlBinding
annotation on an ActionBean
class.
Field Summary | |
---|---|
protected Class<? extends ActionBean> |
beanType
|
protected List<Object> |
components
|
protected List<UrlBindingParameter> |
parameters
|
protected String |
path
|
protected String |
suffix
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Class<? extends ActionBean> beanType
protected String path
protected String suffix
protected List<Object> components
protected List<UrlBindingParameter> parameters
Constructor Detail |
---|
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
- Method Detail |
---|
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.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |