org

scalatra

package scalatra

Linear Supertypes
Control, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. scalatra
  2. Control
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Action = () ⇒ Any

  2. case class ActionResult(status: ResponseStatus, body: Any, headers: Map[String, String]) extends Product with Serializable

  3. trait ApiFormats extends ScalatraBase

    Adds support for mapping and inferring formats to content types.

  4. abstract class AsyncResult extends ScalatraContext

  5. final class BooleanBlockRouteMatcher extends RouteMatcher

    A route matcher on a boolean condition.

  6. type ContentTypeInferrer = PartialFunction[Any, String]

  7. trait Control extends AnyRef

    A collection of methods that affect the control flow of routes.

  8. case class Cookie(name: String, value: String)(implicit cookieOptions: CookieOptions = ...) extends Product with Serializable

  9. trait CookieContext extends AnyRef

  10. case class CookieOptions(domain: String = "", path: String = "", maxAge: Int = -1, secure: Boolean = false, comment: String = "", httpOnly: Boolean = false, version: Int = 0, encoding: String = "UTF-8") extends Product with Serializable

  11. trait CoreDsl extends Handler with Control with ScalatraContext with ServletApiImplicits

    The core Scalatra DSL.

  12. type CoreStack = CorsSupport with FutureSupport with FlashMapSupport

  13. type CoreStackNoFlash = CorsSupport with FutureSupport

  14. type CoreStackNoFlashWithCsrf = CoreStackNoFlash with CsrfTokenSupport

  15. type CoreStackNoFlashWithXsrf = CoreStackNoFlash with XsrfTokenSupport

  16. type CoreStackWithCsrf = CoreStack with CsrfTokenSupport

  17. type CoreStackWithXsrf = CoreStack with XsrfTokenSupport

  18. trait CorsSupport extends Handler with Initializable

  19. trait CsrfTokenSupport extends AnyRef

    Provides cross-site request forgery protection.

  20. trait DynamicScope extends RequestResponseScope

    The Scalatra DSL requires a dynamically scoped request and response.

  21. type ErrorHandler = PartialFunction[Throwable, Any]

  22. case class ExtensionMethod(name: String) extends HttpMethod with Product with Serializable

  23. type FileUploadStack = FutureSupport with FlashMapSupport with FileUploadSupport

  24. class FlashMap extends MutableMapWithIndifferentAccess[Any] with Serializable

    A FlashMap is the data structure used by org.scalatra.FlashMapSupport to allow passing temporary values between sequential actions.

  25. trait FlashMapSupport extends Handler

    Allows an action to set key-value pairs in a transient state that is accessible only to the next action and is expired immediately after that.

  26. type FullCoreStack = CoreStack with FileUploadSupport

  27. trait FutureSupport extends AsyncSupport

  28. type FuturesAndFlashStack = FutureSupport with FlashMapSupport

  29. type FuturesAndFlashStackWithCsrf = FuturesAndFlashStack with CsrfTokenSupport

  30. type FuturesAndFlashStackWithXsrf = FuturesAndFlashStack with XsrfTokenSupport

  31. trait GZipSupport extends Handler

    Scalatra handler for gzipped responses.

  32. sealed trait HttpMethod extends AnyRef

  33. abstract class HttpVersion extends Ordered[HttpVersion]

  34. trait LifeCycle extends ServletApiImplicits

  35. case class MatchedRoute(action: () ⇒ Any, multiParams: MultiParams) extends Product with Serializable

    An action and the multi-map of route parameters to invoke it with.

  36. trait MethodOverride extends Handler with ServletApiImplicits

    Mixin for clients that only support a limited set of HTTP verbs.

  37. type MultiParams = MultiMap

  38. type Params = MultiMapHeadView[String, String] with MapWithIndifferentAccess[String]

  39. case class PathPattern(regex: Regex, captureGroupNames: List[String] = immutable.this.Nil) extends Product with Serializable

    A path pattern optionally matches a request path and extracts path parameters.

  40. trait PathPatternParser extends AnyRef

    Parses a string into a path pattern for routing.

  41. final class PathPatternRouteMatcher extends RouteMatcher

  42. class RailsPathPatternParser extends RegexPathPatternParser

    Path pattern parser based on Rack::Mount::Strexp, which is used by Rails.

  43. final class RailsRouteMatcher extends RouteMatcher with ReversibleRouteMatcher

    An implementation of Rails' path pattern syntax

  44. trait RegexPathPatternParser extends PathPatternParser with RegexParsers

  45. final class RegexRouteMatcher extends RouteMatcher

    A route matcher for regular expressions.

  46. type RenderPipeline = PartialFunction[Any, Any]

  47. trait RequestResponseScope extends AnyRef

  48. case class ResponseStatus(code: Int, message: String) extends Ordered[ResponseStatus] with Product with Serializable

  49. trait ReversibleRouteMatcher extends AnyRef

    A route matcher from which a URI can be generated from route parameters.

  50. case class Route(routeMatchers: Seq[RouteMatcher] = collection.this.Seq.empty[Nothing], action: () ⇒ Any, contextPath: (HttpServletRequest) ⇒ String = ..., metadata: Map[Symbol, Any] = ...) extends Product with Serializable

    A route is a set of matchers and an action.

  51. trait RouteMatcher extends RouteTransformer

    A route matcher is evaluated in the context it was created and returns a a (possibly empty) multi-map of parameters if the route is deemed to match.

  52. class RouteRegistry extends AnyRef

  53. trait RouteTransformer extends AnyRef

  54. trait ScalatraBase extends ScalatraContext with CoreDsl with DynamicScope with Initializable with ServletApiImplicits with ScalatraParamsImplicits with DefaultImplicitConversions with SessionSupport with CookieSupport

    The base implementation of the Scalatra DSL.

  55. trait ScalatraContext extends ServletApiImplicits with SessionSupport with CookieContext

  56. class ScalatraException extends Exception

  57. trait ScalatraFilter extends Filter with ServletBase

    An implementation of the Scalatra DSL in a filter.

  58. class ScalatraParams extends MultiMapHeadView[String, String] with MapWithIndifferentAccess[String]

  59. trait ScalatraParamsImplicits extends AnyRef

    Add some implicits

  60. abstract class ScalatraServlet extends HttpServlet with ServletBase with Initializable

    An implementation of the Scalatra DSL in a servlet.

  61. sealed trait Scheme extends AnyRef

  62. trait SessionSupport extends AnyRef

    This trait provides session support for stateful applications.

  63. class SinatraPathPatternParser extends RegexPathPatternParser

    A Sinatra-compatible route path pattern parser.

  64. final class SinatraRouteMatcher extends RouteMatcher with ReversibleRouteMatcher

    An implementation of Sinatra's path pattern syntax.

  65. trait SslRequirement extends Handler with ServletApiImplicits

    Redirects unsecured requests to the corresponding secure URL.

  66. final class StatusCodeRouteMatcher extends RouteMatcher

  67. class SweetCookies extends ServletApiImplicits

  68. trait UrlGeneratorSupport extends AnyRef

    Adds support for generating URIs from routes and their params.

  69. trait XsrfTokenSupport extends AnyRef

  70. trait CookieSupport extends AnyRef

    Annotations
    @deprecated
    Deprecated

    (Since version 2.2) You can remove this mixin, it's included in core by default

  71. trait GetResponseStatusSupport extends AnyRef

    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) No longer necessary after upgrade to Servlet 3.0

  72. type ScalatraKernel = ServletBase

    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Use org.scalatra.servlet.ServletBase if you depend on the Servlet API, or org.scalatra.ScalatraBase if you don't.

  73. trait TypedParamSupport extends ScalatraBase

    Annotations
    @deprecated
    Deprecated

    (Since version 2.2) This got folded into core, so you can remove the TypeParamSupport trait safely.

  74. trait UrlSupport extends AnyRef

    Provides utility methods for the creation of URL strings.

Value Members

  1. object Accepted

  2. object AlreadyReported

  3. object ApiFormats

  4. object BadGateway

  5. object BadRequest

  6. object Conflict

  7. object Connect extends HttpMethod with Product with Serializable

  8. object Cookie extends Serializable

  9. object CookieSupport

  10. object CorsSupport

  11. object Created

  12. object CsrfTokenSupport

  13. object Delete extends HttpMethod with Product with Serializable

  14. val EnvironmentKey: String

  15. object ExpectationFailed

  16. object FailedDependency

  17. object FlashMapSupport

  18. object Forbidden

  19. object Found

  20. object GatewayTimeout

  21. object GenerateId

  22. object Get extends HttpMethod with Product with Serializable

  23. object Gone

  24. object HTTPVersionNotSupported

  25. object Head extends HttpMethod with Product with Serializable

  26. object Http extends Scheme with Product with Serializable

  27. object Http10 extends HttpVersion

  28. object Http11 extends HttpVersion

  29. object HttpMethod

  30. object Https extends Scheme with Product with Serializable

  31. object IMUsed

  32. object InsufficientStorage

  33. object InternalServerError

  34. object LengthRequired

  35. object Locked

  36. object LoopDetected

  37. object MethodNotAllowed

  38. object MethodOverride

  39. object MovedPermanently

  40. val MultiParamsKey: String

  41. object MultiStatus

  42. object MultipleChoices

  43. object NetworkAuthenticationRequired

  44. object NoContent

  45. object NonAuthoritativeInformation

  46. object NotAcceptable

  47. object NotExtended

  48. object NotFound

  49. object NotImplemented

  50. object NotModified

  51. object Ok

  52. object Options extends HttpMethod with Product with Serializable

  53. object PartialContent

  54. object Patch extends HttpMethod with Product with Serializable

  55. object PathPatternParser

  56. object PaymentRequired

  57. object PermanentRedirect

  58. object Post extends HttpMethod with Product with Serializable

  59. object PreconditionFailed

  60. object PreconditionRequired

  61. object ProxyAuthenticationRequired

  62. object Put extends HttpMethod with Product with Serializable

  63. object RailsPathPatternParser

  64. object RequestEntityTooLarge

  65. object RequestHeaderFieldsTooLarge

  66. object RequestTimeout

  67. object RequestURITooLong

  68. object RequestedRangeNotSatisfiable

  69. object ResetContent

  70. object ResponseStatus extends Serializable

  71. object Route extends Serializable

  72. object RouteTransformer

  73. object ScalatraBase

  74. object ScalatraContext

  75. object ScalatraKernel

  76. object ScalatraParamsImplicits extends ScalatraParamsImplicits with DefaultImplicitConversions

  77. object ScalatraServlet extends Serializable

  78. object SeeOther

  79. object ServiceUnavailable

  80. object SinatraPathPatternParser

  81. object TemporaryRedirect

  82. object TooManyRequests

  83. object Trace extends HttpMethod with Product with Serializable

  84. object Unauthorized

  85. object UnprocessableEntity

  86. object UnsupportedMediaType

  87. object UpgradeRequired

  88. object UriDecoder

  89. object UrlGenerator extends UrlGeneratorSupport

  90. object UseProxy

  91. object VariantAlsoNegotiates

  92. object XsrfTokenSupport

  93. package akka

  94. def halt(result: ActionResult): Nothing

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

    Immediately halts processing of a request.

    Immediately halts processing of a request. Can be called from either a before filter or a route.

    status

    the status to set on the response, or null to leave the status unchanged.

    body

    a result to render through the render pipeline as the body

    headers

    headers to add to the response

    reason

    the HTTP status reason to set, or null to leave unchanged.

    Definition Classes
    Control
  96. package i18n

  97. def pass(): Nothing

    Immediately exits from the current route.

    Immediately exits from the current route.

    Definition Classes
    Control
  98. package servlet

  99. package util

Inherited from Control

Inherited from AnyRef

Inherited from Any

Ungrouped