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 class
Param.Role
The various roles of the known parameters.
-
Field Summary
Fields Modifier and Type Field Description int
index
Param.Role
role
java.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 void
bind(Param.Role role)
<A extends java.lang.annotation.Annotation>
AgetAnnotation(java.lang.Class<A> annotationClass)
java.lang.String
getPathParamName()
boolean
isValid()
void
setPathParamName(java.lang.String name)
java.lang.String
toString()
void
unbind()
-
-
-
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:
toString
in classjava.lang.Object
-
unbind
public void unbind()
-
-