Class Param
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.annotations.Param
-
public class Param extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParam.RoleThe various roles of the known parameters.
-
Field Summary
Fields Modifier and Type Field Description intindexParam.Rolerolejava.lang.Class<?>type
-
Constructor Summary
Constructors Constructor Description Param(int idx, java.lang.Class<?> type, java.lang.annotation.Annotation[] annos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(Param.Role role)<A extends java.lang.annotation.Annotation>
AgetAnnotation(java.lang.Class<A> annotationClass)java.lang.StringgetPathParamName()booleanisValid()voidsetPathParamName(java.lang.String name)java.lang.StringtoString()voidunbind()
-
-
-
Field Detail
-
index
public int index
-
type
public java.lang.Class<?> type
-
role
public Param.Role role
-
-
Method Detail
-
bind
public void bind(Param.Role role)
-
getAnnotation
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationClass)
-
getPathParamName
public java.lang.String getPathParamName()
-
isValid
public boolean isValid()
-
setPathParamName
public void setPathParamName(java.lang.String name)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
unbind
public void unbind()
-
-