org.glassfish.tyrus.platform
Class Model

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

public class Model
extends Object

Model of a class annotated using the WebSocketEndpoint annotations

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

Constructor Summary
Model(Class<?> annotatedClass)
           
Model(Object endpoint)
           
 
Method Summary
 Object getBean()
           
 Field getContextField()
           
 Set<Class<?>> getDecoders()
           
 Set<Class<?>> getEncoders()
           
 Set<Method> getOnCloseMethods()
           
 Set<Method> getOnMessageMethods()
           
 Set<Method> getOnOpenMethods()
           
 List<String> getSubprotocols()
           
static Set<Method> parseAnnotatedMethods(Class wsClass, Class annotationClass)
           
static List<String> parseSubprotocols(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(Class<?> annotatedClass)

Model

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

parseAnnotatedMethods

public static Set<Method> parseAnnotatedMethods(Class wsClass,
                                                Class annotationClass)

parseSubprotocols

public static List<String> parseSubprotocols(Class wsClass)

getOnOpenMethods

public Set<Method> getOnOpenMethods()

getOnCloseMethods

public Set<Method> getOnCloseMethods()

getOnMessageMethods

public Set<Method> getOnMessageMethods()

getBean

public Object getBean()

getEncoders

public Set<Class<?>> getEncoders()

getDecoders

public Set<Class<?>> getDecoders()

getContextField

public Field getContextField()

getSubprotocols

public List<String> getSubprotocols()


Copyright © 2012. All Rights Reserved.