@ServerEndpoint to check that it complies with specification.
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final ErrorCollector | |
| private final List | |
| private final MessageHandlerManager |
| Access | Constructor and Description |
|---|---|
| public | AnnotatedClassValidityChecker(Class<?>
class for which this checker is constructed. annotatedClass, List<Class<? extends Encoder>> encoders, List<Class<? extends Decoder>> decoders, ErrorCollector collector)Construct the class validity checker. |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public void | checkOnCloseParams(Method method, Map<Integer, Class<?>>
unknown params of the method. params)Checks whether the params of method annotated with |
| public void | checkOnErrorParams(Method method, Map<Integer, Class<?>>
unknown params of the method. params)Checks whether the params of method annotated with |
| public void | checkOnMessageParams(Method method, MessageHandler handler)
Checks whether the params of the method annotated with |
| private void | |
| public void | checkOnOpenParams(Method method, Map<Integer, Class<?>>
to be checked. params)Checks whether the params of method annotated with |
| private String | |
| private void |
| annotatedClass | back to summary |
|---|---|
| private final Class<?> annotatedClass | |
| collector | back to summary |
|---|---|
| private final ErrorCollector collector | |
| encoders | back to summary |
|---|---|
| private final List<Class<? extends Encoder>> encoders | |
| handlerManager | back to summary |
|---|---|
| private final MessageHandlerManager handlerManager | |
| AnnotatedClassValidityChecker | back to summary |
|---|---|
| public AnnotatedClassValidityChecker(Class<?> annotatedClass, List<Class<? extends Encoder>> encoders, List<Class<? extends Decoder>> decoders, ErrorCollector collector) Construct the class validity checker.
| |
| checkEncoders | back to summary |
|---|---|
| private boolean checkEncoders(Class<?> requiredType) | |
| checkOnCloseParams | back to summary |
|---|---|
| public void checkOnCloseParams(Method method, Map<Integer, Class<?>> params) Checks whether the params of method annotated with | |
| checkOnErrorParams | back to summary |
|---|---|
| public void checkOnErrorParams(Method method, Map<Integer, Class<?>> params) Checks whether the params of method annotated with | |
| checkOnMessageParams | back to summary |
|---|---|
| public void checkOnMessageParams(Method method, MessageHandler handler) Checks whether the params of the method annotated with
Voluntary parameters of type | |
| checkOnMessageReturnType | back to summary |
|---|---|
| private void checkOnMessageReturnType(Method method) | |
| checkOnOpenParams | back to summary |
|---|---|
| public void checkOnOpenParams(Method method, Map<Integer, Class<?>> params) Checks whether the params of method annotated with
Voluntary parameters of type | |
| getPrefix | back to summary |
|---|---|
| private String getPrefix(String methodName) | |
| logDeploymentException | back to summary |
|---|---|
| private void logDeploymentException(DeploymentException de) | |