Class TyrusServerConfiguration

    • Constructor Detail

      • TyrusServerConfiguration

        public TyrusServerConfiguration​(java.util.Set<java.lang.Class<?>> classes,
                                        java.util.Set<ServerEndpointConfig> serverEndpointConfigs)
        Parameters:
        classes - classes to be included in this application instance. Can contain any combination of annotated endpoints (see ServerEndpoint). Cannot be null.
        serverEndpointConfigs - List of instances of ServerEndpointConfig to be deployed.
        Throws:
        java.lang.IllegalArgumentException - when any of the arguments is null.
      • TyrusServerConfiguration

        public TyrusServerConfiguration​(java.util.Set<java.lang.Class<?>> classes,
                                        java.util.Set<java.lang.Class<?>> dynamicallyAddedClasses,
                                        java.util.Set<ServerEndpointConfig> serverEndpointConfigs,
                                        ErrorCollector errorCollector)
        Parameters:
        classes - classes to be included in this application instance. Can contain any combination of annotated endpoints (see ServerEndpoint).
        dynamicallyAddedClasses - dynamically deployed classes. See .ServerContainer#addEndpoint(Class).
        serverEndpointConfigs - List of instances of ServerEndpointConfig to be deployed.
        errorCollector - model errors are reported to this instance. Cannot be null.
        Throws:
        java.lang.IllegalArgumentException - when any of the arguments is null.