org.glassfish.tyrus.platform
Class Model

java.lang.Object
  extended by org.glassfish.tyrus.platform.Model

public class Model
extends java.lang.Object

Model of a class annotated using the WebSocketEndpoint annotations

Author:
Stepan Kopriva (stepan.kopriva at oracle.com)

Constructor Summary
Model(java.lang.Class<?> annotatedClass)
           
Model(java.lang.Object endpoint)
           
 
Method Summary
 java.lang.Object getBean()
           
 java.lang.reflect.Field getContextField()
           
 java.util.Set<java.lang.Class<?>> getDecoders()
           
 java.util.Set<java.lang.Class<?>> getEncoders()
           
 java.util.Set<java.lang.reflect.Method> getOnCloseMethods()
           
 java.util.Set<java.lang.reflect.Method> getOnMessageMethods()
           
 java.util.Set<java.lang.reflect.Method> getOnOpenMethods()
           
 java.util.List<java.lang.String> getSubprotocols()
           
static java.util.Set<java.lang.reflect.Method> parseAnnotatedMethods(java.lang.Class wsClass, java.lang.Class annotationClass)
           
static java.util.List<java.lang.String> parseSubprotocols(java.lang.Class wsClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model(java.lang.Class<?> annotatedClass)

Model

public Model(java.lang.Object endpoint)
      throws java.lang.IllegalAccessException,
             java.lang.InstantiationException
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
Method Detail

parseAnnotatedMethods

public static java.util.Set<java.lang.reflect.Method> parseAnnotatedMethods(java.lang.Class wsClass,
                                                                            java.lang.Class annotationClass)

parseSubprotocols

public static java.util.List<java.lang.String> parseSubprotocols(java.lang.Class wsClass)

getOnOpenMethods

public java.util.Set<java.lang.reflect.Method> getOnOpenMethods()

getOnCloseMethods

public java.util.Set<java.lang.reflect.Method> getOnCloseMethods()

getOnMessageMethods

public java.util.Set<java.lang.reflect.Method> getOnMessageMethods()

getBean

public java.lang.Object getBean()

getEncoders

public java.util.Set<java.lang.Class<?>> getEncoders()

getDecoders

public java.util.Set<java.lang.Class<?>> getDecoders()

getContextField

public java.lang.reflect.Field getContextField()

getSubprotocols

public java.util.List<java.lang.String> getSubprotocols()


Copyright © 2012. All Rights Reserved.