com.atomizesoftware.spin.controllers.ParameterControllerComponent

ParameterController

class ParameterController extends ScalatraServlet with SpinStack with JacksonJsonSupport with (ParameterControllerComponent.this)#SpinAuthenticationSupport with Validation

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

Instance Constructors

  1. new ParameterController(mqttParametersValues: MQTTParameterValues)

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 checkLongId(id: Option[Long]): Long

    Checks if the id is a long

    Checks if the id is a long

    id

    to check

    returns

    id if is a long, BadRequestException otherwise.

    Definition Classes
    Validation
  28. def checkStringKey(key: Option[String]): String

    Checks if the code is a string

    Checks if the code is a string

    key

    to check

    returns

    key if is a string, BadRequestException otherwise.

    Definition Classes
    Validation
  29. def clone(): AnyRef

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

    Definition Classes
    JsonMethods → JsonMethods
  31. var config: ConfigT

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

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

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

    Definition Classes
    ScalatraContext
  35. def contentTypeInferrer: ContentTypeInferrer

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

    Definition Classes
    ScalatraContext
  37. def contextPath: String

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

    Definition Classes
    CookieContext
  39. def cookies: SweetCookies

    Definition Classes
    CookieContext
  40. implicit def currentUser: AuthenticatedUser

    Gets the username from the authenticated user.

    Gets the username from the authenticated user.

    Definition Classes
    SpinAuthenticationSupport
  41. def currentUserId: Long

    Gets the id from the authenticated user.

    Gets the id from the authenticated user.

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

    Definition Classes
    ApiFormats
  43. val defaultCharacterEncoding: String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  44. def defaultFormat: Symbol

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  52. var doNotFound: Action

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

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

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

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

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

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

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

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

    Definition Classes
    ServletApiImplicits
  61. def environment: String

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

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

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

    Definition Classes
    ScalatraBase → CoreDsl
  65. var errorHandler: ErrorHandler

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

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

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  71. 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
  72. def format(implicit request: HttpServletRequest, response: HttpServletResponse): String

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

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

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

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

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

    Definition Classes
    JsonMethods
  78. 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
  79. def fullUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean, withSessionId: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Control
  91. 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
  92. def handle(request: HttpServletRequest, response: HttpServletResponse): Unit

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

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

    Definition Classes
    ScalatraBase → CoreDsl
  95. def inferFromFormats: ContentTypeInferrer

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScentrySupport
  104. def isDevelopmentMode: Boolean

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

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

    Definition Classes
    Any
  107. implicit val jsonFormats: Formats

    Attributes
    protected
    Definition Classes
    ParameterController → JValueResult
  108. lazy val jsonVulnerabilityGuard: Boolean

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScentrySupport
  113. val logger: Logger

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

    Definition Classes
    LowestPriorityImplicitConversions
  115. def mapper: ObjectMapper

    Definition Classes
    JsonMethods
  116. def matchingIds(idRoute: Option[Long], idEntity: Long): Boolean

    Checks if the param and entity id are equal.

    Checks if the param and entity id are equal.

    idRoute

    id param.

    idEntity

    id extracted from request body.

    returns

    true if equal, false otherwise.

    Definition Classes
    Validation
  117. def matchingKeys(keyRoute: Option[String], keyEntity: String): Boolean

    Checks if the param and entity key are equal.

    Checks if the param and entity key are equal.

    keyRoute

    key param.

    keyEntity

    key extracted from request body.

    returns

    true if equal, false otherwise.

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

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

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

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

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

    Definition Classes
    AnyRef
  123. def needsHttps: Boolean

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

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

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

    Definition Classes
    AnyRef
  127. implicit val onlyFormats: Formats

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

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

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

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

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

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

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

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

    Definition Classes
    JsonSupport
  136. def pass(): Nothing

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

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

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    JsonSupport
  147. val realm: String

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  156. def renderPipeline: RenderPipeline

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

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

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

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

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

    Definition Classes
    ApiFormats
  162. val requestLogger: Logger

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

    Definition Classes
    ScalatraServlet → ScalatraBase
  164. 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
  165. val reservedParameterCodes: List[String]

  166. def resourceNotFound(): Any

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

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

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

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

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

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

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

    Definition Classes
    TypeConverterSupport
  174. implicit def scalatraContext: ScalatraContext

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

    Attributes
    protected
    Definition Classes
    ScentrySupport
  176. val scentryConfig: ScentryConfiguration

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

    Attributes
    protected
    Definition Classes
    ScentrySupport
  178. 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
  179. implicit def seqHead[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], T]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Initializable
  194. def status: Int

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  209. 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
  210. def toString(): String

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

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

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

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

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

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

    Definition Classes
    CoreDsl
  217. 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
  218. implicit def user(implicit request: HttpServletRequest): AuthenticatedUser

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

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

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

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    JsonOutput
  230. 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 Validation

Inherited from (ParameterControllerComponent.this)#SpinAuthenticationSupport

Inherited from BasicAuthSupport[AuthenticatedUser]

Inherited from ScentrySupport[AuthenticatedUser]

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 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