trait SwaggerAuthSupport[TypeForUser <: AnyRef] extends SwaggerSupportBase with SwaggerSupportSyntax
- Self Type
 - SwaggerAuthSupport[TypeForUser] with ScalatraBase with ScentrySupport[TypeForUser]
 
- Alphabetic
 - By Inheritance
 
- SwaggerAuthSupport
 - SwaggerSupportSyntax
 - CorsSupport
 - Handler
 - Initializable
 - SwaggerSupportBase
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
Type Members
- 
      
      
      
        
      
    
      
        
        trait
      
      
        
              Config
             extends AnyRef
      
      
      
- Definition Classes
 - Initializable
 
 - 
      
      
      
        
      
    
      
        abstract 
        type
      
      
        ConfigT
      
      
      
- Definition Classes
 - Initializable
 
 - 
      
      
      
        
      
    
      
        implicit 
        class
      
      
        
              ResponseMessageWithModel
             extends AnyRef
      
      
      
- Definition Classes
 - SwaggerSupportSyntax
 
 
Abstract Value Members
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        applicationDescription: String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        implicit abstract 
        def
      
      
        configWrapper(config: (SwaggerAuthSupport.this)#ConfigT): (SwaggerAuthSupport.this)#Config
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Initializable
 
 - 
      
      
      
        
      
    
      
        implicit abstract 
        def
      
      
        swagger: SwaggerEngine[_]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 
Concrete Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        apiOperation(nickname: String, model: Model): AuthOperationBuilder[TypeForUser]
      
      
      
- Attributes
 - protected
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        apiOperation[T](nickname: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): AuthOperationBuilder[TypeForUser]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerAuthSupport → SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        augmentSimpleRequest(): Unit
      
      
      
- Attributes
 - protected
 - Definition Classes
 - CorsSupport
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        bodyParam(name: String, model: Model): ModelParameterBuilder
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        bodyParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        bodyParam(model: Model): ModelParameterBuilder
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        bodyParam[T](implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        dataType2string(dt: DataType): String
      
      
      
- Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        description(f: PartialFunction[String, String]): Unit
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        endpoint(value: String): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        endpoints(basePath: String): List[AuthEndpoint[TypeForUser]]
      
      
      
Builds the documentation for all the endpoints discovered in an API.
Builds the documentation for all the endpoints discovered in an API.
- Definition Classes
 - SwaggerAuthSupport → SwaggerSupportBase
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        extractOperation(route: Route, method: HttpMethod): AuthOperation[TypeForUser]
      
      
      
Returns a list of operations based on the given route.
Returns a list of operations based on the given route. The default implementation returns a list with only 1 operation.
- Attributes
 - protected
 - Definition Classes
 - SwaggerAuthSupport → SwaggerSupportBase
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( classOf[java.lang.Throwable] )
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        formParam(name: String, model: Model): ModelParameterBuilder
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        formParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        handle(req: HttpServletRequest, res: HttpServletResponse): Unit
      
      
      
Handles a request and writes to the response.
Handles a request and writes to the response.
- Definition Classes
 - CorsSupport → Handler
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        handlePreflightRequest(): Unit
      
      
      
- Attributes
 - protected
 - Definition Classes
 - CorsSupport
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        headerParam(name: String, model: Model): ModelParameterBuilder
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        headerParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        inferSwaggerEndpoint(route: Route): String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        initialize(config: (SwaggerAuthSupport.this)#ConfigT): Unit
      
      
      
Initializes the kernel.
Initializes the kernel. Used to provide context that is unavailable when the instance is constructed, for example the servlet lifecycle. Should set the
configvariable to the parameter.- config
 the configuration.
- Definition Classes
 - SwaggerSupportSyntax → CorsSupport → Initializable
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        models: Map[String, Model]
      
      
      
The currently registered model descriptions for swagger
The currently registered model descriptions for swagger
- returns
 a map of swagger models
- Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        operation(op: SwaggerOperation): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        operationBuilder2operation(bldr: SwaggerAuthOperationBuilder[TypeForUser]): AuthOperation[TypeForUser]
      
      
      
- Attributes
 - protected
 
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        parameterBuilder2parameter(pmb: SwaggerParameterBuilder): Parameter
      
      
      
- Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        pathParam(name: String, model: Model): ModelParameterBuilder
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        pathParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        queryParam(name: String, model: Model): ModelParameterBuilder
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        queryParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        registerModel[T]()(implicit arg0: Manifest[T], arg1: NotNothing[T]): Unit
      
      
      
Registers a model for swagger, this method reflects over the class and collects all non-primitive classes and adds those to the swagger defintion
Registers a model for swagger, this method reflects over the class and collects all non-primitive classes and adds those to the swagger defintion
- T
 the class of the model to register
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        registerModel(model: Model): Unit
      
      
      
Registers a model for swagger
Registers a model for swagger
- model
 the model to add to the swagger definition
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        shutdown(): Unit
      
      
      
A hook to shutdown the class.
A hook to shutdown the class. Bridges the gap between servlet's destroy and filter's destroy.
- Attributes
 - protected
 - Definition Classes
 - Initializable
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        swaggerAuthorizations: List[String]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        swaggerConsumes: List[String]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        swaggerDefaultMessages: List[ResponseMessage]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        swaggerEndpointEntries[T <: SwaggerOperation](extract: (Route, HttpMethod) ⇒ T): Iterable[Entry[T]]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        swaggerMeta(s: Symbol, v: Any): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        swaggerProduces: List[String]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        swaggerProtocols: List[String]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 
Deprecated Value Members
- 
      
      
      
        
      
    
      
        
        def
      
      
        allows(value: (Option[TypeForUser]) ⇒ Boolean): RouteTransformer
      
      
      
- Attributes
 - protected
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) Use the
apiOperation.allowsandoperationmethods to build swagger descriptions of endpoints
 - 
      
      
      
        
      
    
      
        
        def
      
      
        applicationName: Option[String]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.3.1) This field is no longer used, due to changes in Swagger spec 1.2
 - 
      
      
      
        
      
    
      
        
        def
      
      
        errors(value: Error*): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) Use the
apiOperation.errorsandoperationmethods to build swagger descriptions of endpoints
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        modelToSwagger(cls: Class[_]): (String, Model)
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) This implicit conversion will be removed in the future
 - 
      
      
      
        
      
    
      
        
        def
      
      
        models_=(m: Map[String, Model]): Map[String, Model]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) Use
registerModel[T]orregisterModel(model)instead, this method will be removed in the future
 - 
      
      
      
        
      
    
      
        
        def
      
      
        nickname(value: String): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) Use the
apiOperation.nicknameandoperationmethods to build swagger descriptions of endpoints
 - 
      
      
      
        
      
    
      
        
        def
      
      
        notes(value: String): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) Use the
apiOperation.notesandoperationmethods to build swagger descriptions of endpoints
 - 
      
      
      
        
      
    
      
        
        def
      
      
        parameters(value: Parameter*): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) Use the
apiOperation.parametersandoperationmethods to build swagger descriptions of endpoints
 - 
      
      
      
        
      
    
      
        
        def
      
      
        responseClass[T](implicit mf: Manifest[T]): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) Use the
apiOperation.responseClassandoperationmethods to build swagger descriptions of endpoints
 - 
      
      
      
        
      
    
      
        
        def
      
      
        responseClass(value: String): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) Use the variant where you use a type parameter, this method doesn't allow for reflection and requires you to manually ad the model
 - 
      
      
      
        
      
    
      
        
        def
      
      
        summary(value: String): RouteTransformer
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2) Use the
apiOperation.summaryandoperationmethods to build swagger descriptions of endpoints
 - 
      
      
      
        
      
    
      
        
        def
      
      
        swaggerDefaultErrors: List[ResponseMessage]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - SwaggerSupportSyntax
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.2.2) Swagger spec 1.2 renamed this to swaggerDefaultMessages, please use that one