com.atomizesoftware.spin.controllers.AuthenticationControllerComponent

AuthenticationController

class AuthenticationController extends ScalatraServlet with SpinStack with (AuthenticationControllerComponent.this)#SpinAuthenticationSupport with JacksonJsonSupport

Linear Supertypes
JacksonJsonSupport, JValueResult, JacksonJsonOutput, JsonMethods, JsonSupport[JValue], JsonOutput[JValue], JsonMethods[JValue], ApiFormats, (AuthenticationControllerComponent.this)#SpinAuthenticationSupport, BasicAuthSupport[AuthenticatedUser], ScentrySupport[AuthenticatedUser], SpinStack, ScalatraServlet, ServletBase, ScalatraBase, CookieSupport, DefaultImplicitConversions, LowPriorityImplicitConversions, LowestPriorityImplicitConversions, TypeConverterSupport, ScalatraParamsImplicits, Initializable, DynamicScope, RequestResponseScope, CoreDsl, Control, Handler, ScalatraContext, CookieContext, SessionSupport, ServletApiImplicits, HttpServlet, GenericServlet, Serializable, ServletConfig, Servlet, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AuthenticationController
  2. JacksonJsonSupport
  3. JValueResult
  4. JacksonJsonOutput
  5. JsonMethods
  6. JsonSupport
  7. JsonOutput
  8. JsonMethods
  9. ApiFormats
  10. SpinAuthenticationSupport
  11. BasicAuthSupport
  12. ScentrySupport
  13. SpinStack
  14. ScalatraServlet
  15. ServletBase
  16. ScalatraBase
  17. CookieSupport
  18. DefaultImplicitConversions
  19. LowPriorityImplicitConversions
  20. LowestPriorityImplicitConversions
  21. TypeConverterSupport
  22. ScalatraParamsImplicits
  23. Initializable
  24. DynamicScope
  25. RequestResponseScope
  26. CoreDsl
  27. Control
  28. Handler
  29. ScalatraContext
  30. CookieContext
  31. SessionSupport
  32. ServletApiImplicits
  33. HttpServlet
  34. GenericServlet
  35. Serializable
  36. ServletConfig
  37. Servlet
  38. AnyRef
  39. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AuthenticationController()

Type Members

  1. trait Config extends AnyRef

    Definition Classes
    Initializable
  2. type ConfigT = ServletConfig

    Definition Classes
    ScalatraServlet → ServletBase → Initializable
  3. abstract type ScentryConfiguration <: ScentryConfig

    Definition Classes
    ScentrySupport
  4. sealed class TypedMultiParams extends AnyRef

    Definition Classes
    ScalatraParamsImplicits
  5. sealed class TypedParams extends AnyRef

    Definition Classes
    ScalatraParamsImplicits

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def acceptHeader(implicit request: HttpServletRequest): List[String]

    Definition Classes
    ApiFormats
  5. def acceptedFormats(accepted: Symbol*): Boolean

    Attributes
    protected
    Definition Classes
    ApiFormats
  6. def addMimeMapping(mime: String, extension: String): Unit

    Attributes
    protected
    Definition Classes
    ApiFormats
  7. def addRoute(method: HttpMethod, transformers: Seq[RouteTransformer], action: ⇒ Any): Route

    Attributes
    protected
    Definition Classes
    ScalatraBase
  8. def addSessionId(uri: String)(implicit response: HttpServletResponse): String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  9. def addStatusRoute(codes: Range, action: ⇒ Any): Unit

    Attributes
    protected[org.scalatra]
    Definition Classes
    ScalatraBase
  10. def after(transformers: RouteTransformer*)(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  11. implicit val anyToBoolean: TypeConverter[Any, Boolean]

    Definition Classes
    LowPriorityImplicitConversions
  12. implicit val anyToByte: TypeConverter[Any, Byte]

    Definition Classes
    LowPriorityImplicitConversions
  13. implicit val anyToDouble: TypeConverter[Any, Double]

    Definition Classes
    LowPriorityImplicitConversions
  14. implicit val anyToFloat: TypeConverter[Any, Float]

    Definition Classes
    LowPriorityImplicitConversions
  15. implicit val anyToInt: TypeConverter[Any, Int]

    Definition Classes
    LowPriorityImplicitConversions
  16. implicit val anyToLong: TypeConverter[Any, Long]

    Definition Classes
    LowPriorityImplicitConversions
  17. implicit val anyToShort: TypeConverter[Any, Short]

    Definition Classes
    LowPriorityImplicitConversions
  18. implicit val anyToString: TypeConverter[Any, String]

    Definition Classes
    LowPriorityImplicitConversions
  19. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  20. def asJValue[T](obj: T)(implicit writer: Writer[T]): JValue

    Definition Classes
    JsonMethods
  21. def authenticate()(implicit request: HttpServletRequest, response: HttpServletResponse): Option[AuthenticatedUser]

    Attributes
    protected
    Definition Classes
    ScentrySupport
  22. def authenticateOnLocations(statusCode: Int = 403, haltResponse: Any = None): UserLocations

    Checks if the user has locations associated and if not halts the procedure.

    Checks if the user has locations associated and if not halts the procedure.

    returns

    a UserLocation that has the seesAll boolean and a list of location ids.

    Definition Classes
    SpinAuthenticationSupport
  23. def basicAuth()(implicit request: HttpServletRequest, response: HttpServletResponse): Option[AuthenticatedUser]

    Checks if the user can be authenticated through basic http authentication.

    Checks if the user can be authenticated through basic http authentication.

    Checks if the request has basic authentication headers and if it is a basic auth request. If not, halts the processing of the request and returns an error response. If the request supports basic auth, it is tried.

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → BasicAuthSupport
  24. def before(transformers: RouteTransformer*)(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  25. implicit def booleanBlock2RouteMatcher(block: ⇒ Boolean): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  26. def cacheRequestBodyAsString: Boolean

    Attributes
    protected
    Definition Classes
    JsonSupport
  27. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def compact(d: JValue): String

    Definition Classes
    JsonMethods → JsonMethods
  29. var config: ConfigT

    Definition Classes
    ScalatraBase
  30. implicit def configWrapper(config: ConfigT): Config { object initParameters }

    Attributes
    protected
    Definition Classes
    ServletBase → Initializable
  31. def configureScentry(): Unit

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  32. def contentType: String

    Definition Classes
    ScalatraContext
  33. def contentTypeInferrer: ContentTypeInferrer

    Attributes
    protected
    Definition Classes
    ApiFormats → ScalatraBase
  34. def contentType_=(contentType: String): Unit

    Definition Classes
    ScalatraContext
  35. def contextPath: String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  36. implicit def cookieOptions: CookieOptions

    Definition Classes
    CookieContext
  37. def cookies: SweetCookies

    Definition Classes
    CookieContext
  38. implicit def currentUser: AuthenticatedUser

    Gets the username from the authenticated user.

    Gets the username from the authenticated user.

    Definition Classes
    SpinAuthenticationSupport
  39. def currentUserId: Long

    Gets the id from the authenticated user.

    Gets the id from the authenticated user.

    Definition Classes
    SpinAuthenticationSupport
  40. def defaultAcceptedFormats: List[Symbol]

    Definition Classes
    ApiFormats
  41. val defaultCharacterEncoding: String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  42. def defaultFormat: Symbol

    Definition Classes
    ApiFormats
  43. implicit def defaultStringToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[String, Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  44. def delete(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  45. def destroy(): Unit

    Definition Classes
    ScalatraServlet → GenericServlet → Servlet
  46. def doDelete(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  47. def doGet(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  48. def doHead(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  49. var doMethodNotAllowed: (Set[HttpMethod]) ⇒ Any

    Attributes
    protected
    Definition Classes
    ScalatraBase
  50. var doNotFound: Action

    Attributes
    protected
    Definition Classes
    ScalatraServlet → ScalatraBase
  51. def doOptions(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  52. def doPost(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  53. def doPut(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  54. def doTrace(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  55. implicit def enrichRequest(request: HttpServletRequest): RichRequest

    Definition Classes
    ServletApiImplicits
  56. implicit def enrichResponse(response: HttpServletResponse): RichResponse

    Definition Classes
    ServletApiImplicits
  57. implicit def enrichServletContext(servletContext: ServletContext): RichServletContext

    Definition Classes
    ServletApiImplicits
  58. implicit def enrichSession(session: HttpSession): RichSession

    Definition Classes
    ServletApiImplicits
  59. def environment: String

    Definition Classes
    ScalatraBase
  60. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  61. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  62. def error(handler: ErrorHandler): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  63. var errorHandler: ErrorHandler

    Attributes
    protected
    Definition Classes
    ScalatraBase
  64. def executeRoutes(): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  65. def existsInUserLocations(locationId: Option[Long]): Boolean

    Definition Classes
    SpinAuthenticationSupport
  66. def existsInUserLocations(locationId: Long): Boolean

    Definition Classes
    SpinAuthenticationSupport
  67. def extractStatusCode(e: HaltException): Int

    Attributes
    protected
    Definition Classes
    ScalatraBase
  68. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  69. def findTopMostLocationForUser: Option[Long]

    Tries to find a top most location for the current user.

    Tries to find a top most location for the current user.

    If the user can see all locations, None is returned If the user has locations we search for a top most location and return its id.

    returns

    a Long if a top most location was found for the user, None otherwise.

    Definition Classes
    SpinAuthenticationSupport
  70. def format(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ApiFormats
  71. def formatForMimeTypes(mimeTypes: String*): Option[String]

    Attributes
    protected
    Definition Classes
    ApiFormats
  72. def format_=(formatValue: String): Unit

    Definition Classes
    ScalatraContext
  73. def format_=(formatValue: Symbol): Unit

    Definition Classes
    ScalatraContext
  74. val formats: Map[String, String]

    Definition Classes
    ApiFormats
  75. def fromJValue[T](json: JValue)(implicit reader: Reader[T]): T

    Definition Classes
    JsonMethods
  76. def fromSession: PartialFunction[String, AuthenticatedUser]

    Defines how to get a user from a session by its id.

    Defines how to get a user from a session by its id.

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  77. def fullUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean, withSessionId: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ScalatraBase
  78. def get(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  79. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  80. def getInitParameter(arg0: String): String

    Definition Classes
    GenericServlet → ServletConfig
  81. def getInitParameterNames(): Enumeration[String]

    Definition Classes
    GenericServlet → ServletConfig
  82. def getLastModified(arg0: HttpServletRequest): Long

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
  83. def getServletConfig(): ServletConfig

    Definition Classes
    GenericServlet → Servlet
  84. def getServletContext(): ServletContext

    Definition Classes
    GenericServlet → ServletConfig
  85. def getServletInfo(): String

    Definition Classes
    GenericServlet → Servlet
  86. def getServletName(): String

    Definition Classes
    GenericServlet → ServletConfig
  87. def halt(result: ActionResult): Nothing

    Definition Classes
    Control
  88. def halt[T](status: Integer, body: T, headers: Map[String, String], reason: String)(implicit arg0: Manifest[T]): Nothing

    Definition Classes
    Control
  89. def haltIfUserIsNotAllowedIn(locationId: Option[Long]): Unit

    Checks if the user has a particular location id within the one he/she can see.

    Checks if the user has a particular location id within the one he/she can see.

    If the user can see all locations, nothing is done. Otherwise we search for the location id within the user locations.

    returns

    403 with error response if user doesn't have the required location.

    Definition Classes
    SpinAuthenticationSupport
  90. def handle(request: HttpServletRequest, response: HttpServletResponse): Unit

    Definition Classes
    ServletBase → ScalatraBase → Handler
  91. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  92. def head(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  93. def inferFromFormats: ContentTypeInferrer

    Attributes
    protected
    Definition Classes
    ApiFormats
  94. def init(config: ServletConfig): Unit

    Definition Classes
    ScalatraServlet → GenericServlet → Servlet
  95. def init(): Unit

    Definition Classes
    GenericServlet
    Annotations
    @throws( ... )
  96. def initParameter(name: String): Option[String]

    Definition Classes
    ScalatraBase
  97. def initialize(config: ConfigT): Unit

    Definition Classes
    ScentrySupport → Initializable
  98. def invoke(matchedRoute: MatchedRoute): Option[Any]

    Attributes
    protected
    Definition Classes
    JsonSupport → ScalatraBase
  99. def isAnonymous(implicit request: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    ScentrySupport
  100. def isAsyncExecutable(result: Any): Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  101. def isAuthenticated(implicit request: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    ScentrySupport
  102. def isDevelopmentMode: Boolean

    Definition Classes
    ScalatraBase
  103. def isHttps(implicit request: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  104. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  105. implicit val jsonFormats: Formats

    Attributes
    protected
    Definition Classes
    AuthenticationController → JValueResult
  106. lazy val jsonVulnerabilityGuard: Boolean

    Attributes
    protected
    Definition Classes
    JsonOutput
  107. def jsonpCallbackParameterNames: Iterable[String]

    Definition Classes
    JsonOutput
  108. def log(arg0: String, arg1: Throwable): Unit

    Definition Classes
    GenericServlet
  109. def log(arg0: String): Unit

    Definition Classes
    GenericServlet
  110. def logOut()(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Attributes
    protected
    Definition Classes
    ScentrySupport
  111. val logger: Logger

    Definition Classes
    SpinAuthenticationSupport
  112. implicit def lowestPriorityAny2T[T](implicit arg0: Manifest[T]): TypeConverter[Any, T]

    Definition Classes
    LowestPriorityImplicitConversions
  113. def mapper: ObjectMapper

    Definition Classes
    JsonMethods
  114. def methodNotAllowed(f: (Set[HttpMethod]) ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  115. val mimeTypes: Map[String, String]

    Definition Classes
    ApiFormats
  116. def multiParams(implicit request: HttpServletRequest): MultiParams

    Definition Classes
    ScalatraBase
  117. def multiParams(key: String)(implicit request: HttpServletRequest): Seq[String]

    Definition Classes
    ScalatraBase
  118. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  119. def needsHttps: Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  120. def notFound(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  121. final def notify(): Unit

    Definition Classes
    AnyRef
  122. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  123. implicit val onlyFormats: Formats

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport
  124. def options(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  125. def params(implicit request: HttpServletRequest): Params

    Definition Classes
    ScalatraBase
  126. def params(key: Symbol)(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraBase
  127. def params(key: String)(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraBase
  128. def parse(in: JsonInput, useBigDecimalForDouble: Boolean): JValue

    Definition Classes
    JsonMethods → JsonMethods
  129. def parseOpt(in: JsonInput, useBigDecimalForDouble: Boolean): Option[JValue]

    Definition Classes
    JsonMethods → JsonMethods
  130. def parseRequestBody(format: String)(implicit request: HttpServletRequest): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  131. def parsedBody(implicit request: HttpServletRequest): JValue

    Definition Classes
    JsonSupport
  132. def pass(): Nothing

    Definition Classes
    Control
  133. def patch(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  134. implicit def pathPatternParser2RouteMatcher(pattern: PathPattern): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  135. def post(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  136. def pretty(d: JValue): String

    Definition Classes
    JsonMethods → JsonMethods
  137. def put(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  138. def readJsonFromBody(bd: String): JValue

    Attributes
    protected
    Definition Classes
    JacksonJsonSupport → JsonSupport
  139. def readJsonFromStream(stream: InputStream): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  140. def readJsonFromStreamWithCharset(stream: InputStream, charset: String): JValue

    Attributes
    protected
    Definition Classes
    JacksonJsonSupport → JsonSupport
  141. def readXmlFromBody(bd: String): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  142. def readXmlFromStream(stream: InputStream): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  143. val realm: String

    Definition Classes
    SpinAuthenticationSupport → BasicAuthSupport
  144. def redirect(uri: String)(implicit request: HttpServletRequest, response: HttpServletResponse): Nothing

    Definition Classes
    ScalatraBase
  145. implicit def regex2RouteMatcher(regex: Regex): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  146. def registerAuthStrategies(): Unit

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  147. def relativeUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ScalatraBase
  148. def removeRoute(method: String, route: Route): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  149. def removeRoute(method: HttpMethod, route: Route): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  150. def render(value: JValue): JValue

    Definition Classes
    JsonMethods → JsonMethods
  151. def renderHaltException(e: HaltException): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  152. def renderPipeline: RenderPipeline

    Attributes
    protected
    Definition Classes
    JValueResult → ScalatraBase
  153. def renderResponse(actionResult: Any): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  154. def renderResponseBody(actionResult: Any): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  155. def renderUncaughtException(e: Throwable)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  156. implicit def request: HttpServletRequest

    Definition Classes
    DynamicScope → RequestResponseScope
  157. def requestFormat(implicit request: HttpServletRequest): String

    Definition Classes
    ApiFormats
  158. val requestLogger: Logger

    Definition Classes
    SpinStack
  159. def requestPath(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraServlet → ScalatraBase
  160. def requirePermission(permission: String): Unit

    Gets the current user and checks if he has permission to do the specified action.

    Gets the current user and checks if he has permission to do the specified action.

    permission

    that needs to be in the user permissions list.

    returns

    403 with error response if user doesn't have the required permission.

    Definition Classes
    SpinAuthenticationSupport
  161. def resourceNotFound(): Any

    Attributes
    protected
    Definition Classes
    ScalatraServlet
  162. implicit def response: HttpServletResponse

    Definition Classes
    DynamicScope → RequestResponseScope
  163. def routeBasePath(implicit request: HttpServletRequest): String

    Attributes
    protected
    Definition Classes
    ScalatraServlet → ScalatraBase
  164. lazy val routes: RouteRegistry

    Definition Classes
    ScalatraBase
  165. def runFilters(filters: Traversable[Route]): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  166. def runRoutes(routes: Traversable[Route]): Stream[Any]

    Attributes
    protected
    Definition Classes
    ScalatraBase
  167. implicit def safe[S, T](f: (S) ⇒ T): TypeConverter[S, T]

    Definition Classes
    TypeConverterSupport
  168. implicit def safeOption[S, T](f: (S) ⇒ Option[T]): TypeConverter[S, T]

    Definition Classes
    TypeConverterSupport
  169. implicit def scalatraContext: ScalatraContext

    Attributes
    protected[this]
    Definition Classes
    ScalatraContext
  170. def scentry(implicit request: HttpServletRequest): Scentry[AuthenticatedUser]

    Attributes
    protected
    Definition Classes
    ScentrySupport
  171. val scentryConfig: ScentryConfiguration

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  172. def scentryOption(implicit request: HttpServletRequest): Option[Scentry[AuthenticatedUser]]

    Attributes
    protected
    Definition Classes
    ScentrySupport
  173. def seesAllLocations(user: User): Boolean

    Checks if the current user is able to see all locations based on its groups.

    Checks if the current user is able to see all locations based on its groups.

    returns

    true if it is able to see all locations, false otherwise

    Definition Classes
    SpinAuthenticationSupport
  174. implicit def seqHead[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], T]

    Definition Classes
    DefaultImplicitConversions
  175. implicit def seqToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  176. def serveStaticResource(): Option[Any]

    Attributes
    protected
    Definition Classes
    ScalatraServlet
  177. def serverHost(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraBase
  178. def serverPort(implicit request: HttpServletRequest): Int

    Definition Classes
    ScalatraBase
  179. def service(request: HttpServletRequest, response: HttpServletResponse): Unit

    Definition Classes
    ScalatraServlet → HttpServlet
  180. def service(arg0: ServletRequest, arg1: ServletResponse): Unit

    Definition Classes
    HttpServlet → GenericServlet → Servlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  181. def servletContext: ServletContext

    Definition Classes
    ScalatraBase → ScalatraContext
  182. def session(key: Symbol)(implicit request: HttpServletRequest): Any

    Definition Classes
    SessionSupport
  183. def session(key: String)(implicit request: HttpServletRequest): Any

    Definition Classes
    SessionSupport
  184. implicit def session(implicit request: HttpServletRequest): HttpSession

    Definition Classes
    SessionSupport
  185. def sessionOption(implicit request: HttpServletRequest): Option[HttpSession]

    Definition Classes
    SessionSupport
  186. def setMultiparams[S](matchedRoute: Option[MatchedRoute], originalParams: MultiParams)(implicit request: HttpServletRequest): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  187. def shouldParseBody(fmt: String)(implicit request: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    JsonSupport
  188. def shutdown(): Unit

    Attributes
    protected
    Definition Classes
    Initializable
  189. def status: Int

    Definition Classes
    ScalatraContext
  190. def status_=(code: Int): Unit

    Definition Classes
    ScalatraContext
  191. implicit def string2RouteMatcher(path: String): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  192. implicit val stringToBoolean: TypeConverter[String, Boolean]

    Definition Classes
    DefaultImplicitConversions
  193. implicit val stringToByte: TypeConverter[String, Byte]

    Definition Classes
    DefaultImplicitConversions
  194. def stringToDate(format: ⇒ String): TypeConverter[String, Date]

    Definition Classes
    DefaultImplicitConversions
  195. def stringToDateFormat(format: ⇒ DateFormat): TypeConverter[String, Date]

    Definition Classes
    DefaultImplicitConversions
  196. implicit val stringToDouble: TypeConverter[String, Double]

    Definition Classes
    DefaultImplicitConversions
  197. implicit val stringToFloat: TypeConverter[String, Float]

    Definition Classes
    DefaultImplicitConversions
  198. implicit val stringToInt: TypeConverter[String, Int]

    Definition Classes
    DefaultImplicitConversions
  199. implicit val stringToLong: TypeConverter[String, Long]

    Definition Classes
    DefaultImplicitConversions
  200. implicit val stringToSelf: TypeConverter[String, String]

    Definition Classes
    DefaultImplicitConversions
  201. def stringToSeq[T](elementConverter: TypeConverter[String, T], separator: String)(implicit arg0: Manifest[T]): TypeConverter[String, Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  202. implicit val stringToShort: TypeConverter[String, Short]

    Definition Classes
    DefaultImplicitConversions
  203. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  204. def toSession: PartialFunction[AuthenticatedUser, String]

    Defines how to register a user in a session, only keeping its id.

    Defines how to register a user in a session, only keeping its id.

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  205. def toString(): String

    Definition Classes
    AnyRef → Any
  206. implicit def toTypedMultiParams(params: MultiParams): TypedMultiParams

    Definition Classes
    ScalatraParamsImplicits
  207. implicit def toTypedParams(params: Params): TypedParams

    Definition Classes
    ScalatraParamsImplicits
  208. def transformRequestBody(body: JValue): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  209. def transformResponseBody(body: JValue): JValue

    Attributes
    protected
    Definition Classes
    JsonOutput
  210. def trap(codes: Range)(block: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  211. def trap(code: Int)(block: ⇒ Any): Unit

    Definition Classes
    CoreDsl
  212. def url(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean, absolutize: Boolean, withSessionId: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ScalatraBase
  213. implicit def user(implicit request: HttpServletRequest): AuthenticatedUser

    Attributes
    protected
    Definition Classes
    ScentrySupport
  214. def userOption(implicit request: HttpServletRequest): Option[AuthenticatedUser]

    Attributes
    protected
    Definition Classes
    ScentrySupport
  215. def user_=(user: AuthenticatedUser)(implicit request: HttpServletRequest): String

    Attributes
    protected
    Definition Classes
    ScentrySupport
  216. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  217. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  218. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  219. def withRequest[A](request: HttpServletRequest)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    DynamicScope → RequestResponseScope
  220. def withRequestResponse[A](request: HttpServletRequest, response: HttpServletResponse)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    DynamicScope → RequestResponseScope
  221. def withResponse[A](response: HttpServletResponse)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    DynamicScope → RequestResponseScope
  222. def withRouteMultiParams[S](matchedRoute: Option[MatchedRoute])(thunk: ⇒ S): S

    Attributes
    protected
    Definition Classes
    ApiFormats → ScalatraBase
  223. def writeJson(json: JValue, writer: Writer): Unit

    Attributes
    protected
    Definition Classes
    JacksonJsonOutput → JsonOutput
  224. def writeJsonAsXml(json: JValue, writer: Writer): Unit

    Attributes
    protected
    Definition Classes
    JsonOutput
  225. lazy val xmlRootNode: Elem

    Attributes
    protected
    Definition Classes
    JsonOutput

Deprecated Value Members

  1. def _request: DynamicVariable[HttpServletRequest]

    Attributes
    protected
    Definition Classes
    DynamicScope
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Do not invoke directly. Use withRequest to change the binding, or request to get the value

  2. def _response: DynamicVariable[HttpServletResponse]

    Attributes
    protected
    Definition Classes
    DynamicScope
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Do not invoke directly. Use withResponse to change the binding, or response to get the value

  3. def applicationContext: ServletContext

    Definition Classes
    ScalatraBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Use servletContext instead

  4. def responseFormat(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ApiFormats
    Annotations
    @deprecated
    Deprecated

    (Since version 2.3) format now means the same as responseFormat, responseFormat will be removed eventually

  5. def status(code: Int): Unit

    Definition Classes
    ScalatraContext
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Use status_=(Int) instead

Inherited from JacksonJsonSupport

Inherited from JValueResult

Inherited from JacksonJsonOutput

Inherited from JsonMethods

Inherited from JsonSupport[JValue]

Inherited from JsonOutput[JValue]

Inherited from JsonMethods[JValue]

Inherited from ApiFormats

Inherited from (AuthenticationControllerComponent.this)#SpinAuthenticationSupport

Inherited from BasicAuthSupport[AuthenticatedUser]

Inherited from ScentrySupport[AuthenticatedUser]

Inherited from SpinStack

Inherited from ScalatraServlet

Inherited from ServletBase

Inherited from ScalatraBase

Inherited from CookieSupport

Inherited from DefaultImplicitConversions

Inherited from LowPriorityImplicitConversions

Inherited from LowestPriorityImplicitConversions

Inherited from TypeConverterSupport

Inherited from ScalatraParamsImplicits

Inherited from Initializable

Inherited from DynamicScope

Inherited from RequestResponseScope

Inherited from CoreDsl

Inherited from Control

Inherited from Handler

Inherited from ScalatraContext

Inherited from CookieContext

Inherited from SessionSupport

Inherited from ServletApiImplicits

Inherited from HttpServlet

Inherited from GenericServlet

Inherited from Serializable

Inherited from ServletConfig

Inherited from Servlet

Inherited from AnyRef

Inherited from Any

Ungrouped