jakarta.websocket.server.ServerEndpoint , an instance of this class creates
and caches the method handler, method information and parameter information for the onXXX calls.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Method | |
| private final PojoPathParam[] | |
| private final Method | |
| private final PojoPathParam[] | |
| private final List | |
| private final Method | |
| private final PojoPathParam[] | |
| private static final StringManager | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | PojoMethodMapping(Class<?>
POJO implementation class clazzPojo, List<Class<? extends Decoder>> Set of potential decoder classes decoderClazzes, String Path at which the endpoint will be deployed wsPath, InstanceManager Instance manager to use to create Decoder instances instanceManager)Create a method mapping for the given POJO |
| Modifier and Type | Method and Description |
|---|---|
| private static Object[] | buildArgs(PojoPathParam[] pathParams, Map<String, String> pathParameters, Session session, EndpointConfig config, Throwable throwable, CloseReason closeReason)
|
| private void | |
| public Set | getMessageHandlers(Object pojo, Map<String, String> pathParameters, Session session, EndpointConfig config)
|
| public Method | |
| public Object[] | |
| public Method | |
| public Object[] | |
| public Method | |
| public Object[] | |
| private static PojoPathParam[] | |
| public String | |
| public boolean | |
| private boolean | |
| private boolean | isOverridenWithoutAnnotation(Method[] methods, Method superclazzMethod, Class<? extends Annotation> annotation)
|
| onClose | back to summary |
|---|---|
| private final Method onClose | |
| onCloseParams | back to summary |
|---|---|
| private final PojoPathParam[] onCloseParams | |
| onError | back to summary |
|---|---|
| private final Method onError | |
| onErrorParams | back to summary |
|---|---|
| private final PojoPathParam[] onErrorParams | |
| onMessage | back to summary |
|---|---|
| private final List<PojoMethodMapping. | |
| onOpen | back to summary |
|---|---|
| private final Method onOpen | |
| onOpenParams | back to summary |
|---|---|
| private final PojoPathParam[] onOpenParams | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| wsPath | back to summary |
|---|---|
| private final String wsPath | |
| PojoMethodMapping | back to summary |
|---|---|
| public PojoMethodMapping(Class<?> clazzPojo, List<Class<? extends Decoder>> decoderClazzes, String wsPath, InstanceManager instanceManager) throws DeploymentException Create a method mapping for the given POJO
| |
| buildArgs | back to summary |
|---|---|
| private static Object[] buildArgs(PojoPathParam[] pathParams, Map<String, String> pathParameters, Session session, EndpointConfig config, Throwable throwable, CloseReason closeReason) throws DecodeException | |
| checkPublic | back to summary |
|---|---|
| private void checkPublic(Method m) throws DeploymentException | |
| getMessageHandlers | back to summary |
|---|---|
| public Set | |
| getOnClose | back to summary |
|---|---|
| public Method getOnClose() | |
| getOnCloseArgs | back to summary |
|---|---|
| public Object[] getOnCloseArgs(Map<String, String> pathParameters, Session session, CloseReason closeReason) throws DecodeException | |
| getOnError | back to summary |
|---|---|
| public Method getOnError() | |
| getOnErrorArgs | back to summary |
|---|---|
| public Object[] getOnErrorArgs(Map<String, String> pathParameters, Session session, Throwable throwable) throws DecodeException | |
| getOnOpen | back to summary |
|---|---|
| public Method getOnOpen() | |
| getOnOpenArgs | back to summary |
|---|---|
| public Object[] getOnOpenArgs(Map<String, String> pathParameters, Session session, EndpointConfig config) throws DecodeException | |
| getPathParams | back to summary |
|---|---|
| private static PojoPathParam[] getPathParams(Method m, PojoMethodMapping. | |
| getWsPath | back to summary |
|---|---|
| public String getWsPath() | |
| hasMessageHandlers | back to summary |
|---|---|
| public boolean hasMessageHandlers() | |
| isMethodOverride | back to summary |
|---|---|
| private boolean isMethodOverride(Method method1, Method method2) | |
| isOverridenWithoutAnnotation | back to summary |
|---|---|
| private boolean isOverridenWithoutAnnotation(Method[] methods, Method superclazzMethod, Class<? extends Annotation> annotation) | |
| Modifier and Type | Field and Description |
|---|---|
| private Util. | |
| private int | |
| private int | |
| private int | |
| private int | |
| private Map | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private final Method | |
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Set | getMessageHandlers(Object pojo, Map<String, String> pathParameters, Session session, EndpointConfig config)
|
| private boolean | |
| private boolean | |
| private boolean | |
| public boolean |
| decoderMatch | back to summary |
|---|---|
| private Util. | |
| indexBoolean | back to summary |
|---|---|
| private int indexBoolean | |
| indexByteArray | back to summary |
|---|---|
| private int indexByteArray | |
| indexByteBuffer | back to summary |
|---|---|
| private int indexByteBuffer | |
| indexInputStream | back to summary |
|---|---|
| private int indexInputStream | |
| indexPathParams | back to summary |
|---|---|
| private Map<Integer, PojoPathParam> indexPathParams | |
| indexPayload | back to summary |
|---|---|
| private int indexPayload | |
| indexPong | back to summary |
|---|---|
| private int indexPong | |
| indexPrimitive | back to summary |
|---|---|
| private int indexPrimitive | |
| indexReader | back to summary |
|---|---|
| private int indexReader | |
| indexSession | back to summary |
|---|---|
| private int indexSession | |
| indexString | back to summary |
|---|---|
| private int indexString | |
| m | back to summary |
|---|---|
| private final Method m | |
| maxMessageSize | back to summary |
|---|---|
| private long maxMessageSize | |
| MessageHandlerInfo | back to summary |
|---|---|
| pack-priv MessageHandlerInfo(Method m, List<DecoderEntry> decoderEntries) throws DeploymentException | |
| getMessageHandlers | back to summary |
|---|---|
| public Set | |
| isBinary | back to summary |
|---|---|
| private boolean isBinary() | |
| isPong | back to summary |
|---|---|
| private boolean isPong() | |
| isText | back to summary |
|---|---|
| private boolean isText() | |
| targetsSameWebSocketMessageType | back to summary |
|---|---|
| public boolean targetsSameWebSocketMessageType(PojoMethodMapping. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PojoMethodMapping. | |
| public static final PojoMethodMapping. | |
| public static final PojoMethodMapping. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PojoMethodMapping. | |
| public static PojoMethodMapping. |
| ON_CLOSE | back to summary |
|---|---|
| public static final PojoMethodMapping. | |
| ON_ERROR | back to summary |
|---|---|
| public static final PojoMethodMapping. | |
| ON_OPEN | back to summary |
|---|---|
| public static final PojoMethodMapping. | |
| MethodType | back to summary |
|---|---|
| private MethodType() | |
| valueOf | back to summary |
|---|---|
| public static PojoMethodMapping. | |
| values | back to summary |
|---|---|
| public static PojoMethodMapping. | |