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. final class BooleanBlockRouteMatcher extends RouteMatcher

    A route matcher on a boolean condition.

  5. case class Conneg[T](value: T, q: Float = 1) extends Product with Serializable

    Represents the value of a content negotiation header.

  6. trait ContentEncoding extends AnyRef

    Represents an HTTP content encoding.

  7. trait ContentEncodingSupport extends Handler

    Scalatra handler for gzipped responses.

  8. type ContentTypeInferrer = PartialFunction[Any, String]

  9. trait Control extends AnyRef

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

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

  11. trait CookieContext extends AnyRef

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

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

    The core Scalatra DSL.

  14. type CoreStack = CorsSupport with FutureSupport with FlashMapSupport

  15. type CoreStackNoFlash = CorsSupport with FutureSupport

  16. type CoreStackNoFlashWithCsrf = CoreStackNoFlash with CsrfTokenSupport

  17. type CoreStackNoFlashWithXsrf = CoreStackNoFlash with XsrfTokenSupport

  18. type CoreStackWithCsrf = CoreStack with CsrfTokenSupport

  19. type CoreStackWithXsrf = CoreStack with XsrfTokenSupport

  20. trait CorsSupport extends Handler with Initializable

  21. trait CsrfTokenSupport extends AnyRef

    Provides cross-site request forgery protection.

  22. trait DynamicScope extends RequestResponseScope

    The Scalatra DSL requires a dynamically scoped request and response.

  23. type ErrorHandler = PartialFunction[Throwable, Any]

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

  25. type FileUploadStack = FutureSupport with FlashMapSupport with FileUploadSupport

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

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

  28. type FullCoreStack = CoreStack with FileUploadSupport

  29. trait FutureSupport extends AsyncSupport

  30. type FuturesAndFlashStack = FutureSupport with FlashMapSupport

  31. type FuturesAndFlashStackWithCsrf = FuturesAndFlashStack with CsrfTokenSupport

  32. type FuturesAndFlashStackWithXsrf = FuturesAndFlashStack with XsrfTokenSupport

  33. sealed trait HttpMethod extends AnyRef

  34. abstract class HttpVersion extends Ordered[HttpVersion]

  35. trait LifeCycle extends ServletApiImplicits

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

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

  37. trait MethodOverride extends Handler with ServletApiImplicits

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

  38. type MultiParams = MultiMap

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

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

  41. trait PathPatternParser extends AnyRef

    Parses a string into a path pattern for routing.

  42. final class PathPatternRouteMatcher extends RouteMatcher

  43. class RailsPathPatternParser extends RegexPathPatternParser

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

  44. final class RailsRouteMatcher extends RouteMatcher with ReversibleRouteMatcher

    An implementation of Rails' path pattern syntax

  45. trait RegexPathPatternParser extends PathPatternParser with RegexParsers

  46. final class RegexRouteMatcher extends RouteMatcher

    A route matcher for regular expressions.

  47. type RenderPipeline = PartialFunction[Any, Any]

  48. trait RequestResponseScope extends AnyRef

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

  50. trait ReversibleRouteMatcher extends AnyRef

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

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

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

  53. class RouteRegistry extends AnyRef

  54. trait RouteTransformer extends AnyRef

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

    The base implementation of the Scalatra DSL.

  56. trait ScalatraContext extends ServletApiImplicits with SessionSupport with CookieContext

  57. class ScalatraException extends Exception

  58. trait ScalatraFilter extends Filter with ServletBase

    An implementation of the Scalatra DSL in a filter.

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

  60. trait ScalatraParamsImplicits extends AnyRef

    Add some implicits

  61. trait ScalatraServlet extends HttpServlet with ServletBase with Initializable

    An implementation of the Scalatra DSL in a servlet.

  62. sealed trait Scheme extends AnyRef

  63. trait SessionSupport extends AnyRef

    This trait provides session support for stateful applications.

  64. class SinatraPathPatternParser extends RegexPathPatternParser

    A Sinatra-compatible route path pattern parser.

  65. final class SinatraRouteMatcher extends RouteMatcher with ReversibleRouteMatcher

    An implementation of Sinatra's path pattern syntax.

  66. trait SslRequirement extends Handler with ServletApiImplicits

    Redirects unsecured requests to the corresponding secure URL.

  67. abstract class StableResult extends ScalatraContext

    Attributes
    protected
  68. final class StatusCodeRouteMatcher extends RouteMatcher

  69. class SweetCookies extends ServletApiImplicits

  70. trait UrlGeneratorSupport extends AnyRef

    Adds support for generating URIs from routes and their params.

  71. trait XsrfTokenSupport extends AnyRef

  72. abstract class AsyncResult extends ScalatraContext

    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.0) AsyncResult is no longer required and will be removed in a coming release.

  73. trait CookieSupport extends AnyRef

    Annotations
    @deprecated
    Deprecated

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

  74. type GZipSupport = ContentEncodingSupport

    Annotations
    @deprecated
    Deprecated

    (Since version 2.4) Use ContentEncodingSupport, GZipSupport will be removed eventually

  75. trait GetResponseStatusSupport extends AnyRef

    Annotations
    @deprecated
    Deprecated

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

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

  77. trait TypedParamSupport extends ScalatraBase

    Annotations
    @deprecated
    Deprecated

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

  78. 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 Conneg extends Serializable

    Defines type classes and helper methods for well known content-negotiation headers.

  9. object ContentEncoding

  10. object Cookie extends Serializable

  11. object CookieSupport

  12. object CoreDslMacros

  13. object CorsSupport

  14. object Created

  15. object CsrfTokenSupport

  16. object Delete extends HttpMethod with Product with Serializable

  17. val EnvironmentKey: String

  18. object ExpectationFailed

  19. object FailedDependency

  20. object FlashMapSupport

  21. object Forbidden

  22. object Found

  23. object GatewayTimeout

  24. object GenerateId

  25. object Get extends HttpMethod with Product with Serializable

  26. object Gone

  27. object HTTPVersionNotSupported

  28. object Head extends HttpMethod with Product with Serializable

  29. object Http extends Scheme with Product with Serializable

  30. object Http10 extends HttpVersion

  31. object Http11 extends HttpVersion

  32. object HttpMethod

  33. object Https extends Scheme with Product with Serializable

  34. object IMUsed

  35. object InsufficientStorage

  36. object InternalServerError

  37. object LengthRequired

  38. object Locked

  39. object LoopDetected

  40. object MethodNotAllowed

  41. object MethodOverride

  42. object MovedPermanently

  43. val MultiParamsKey: String

  44. object MultiStatus

  45. object MultipleChoices

  46. object NetworkAuthenticationRequired

  47. object NoContent

  48. object NonAuthoritativeInformation

  49. object NotAcceptable

  50. object NotExtended

  51. object NotFound

  52. object NotImplemented

  53. object NotModified

  54. object Ok

  55. object Options extends HttpMethod with Product with Serializable

  56. object PartialContent

  57. object Patch extends HttpMethod with Product with Serializable

  58. object PathPatternParser

  59. object PaymentRequired

  60. object PermanentRedirect

  61. object Post extends HttpMethod with Product with Serializable

  62. object PreconditionFailed

  63. object PreconditionRequired

  64. object ProxyAuthenticationRequired

  65. object Put extends HttpMethod with Product with Serializable

  66. object RailsPathPatternParser

  67. object RequestEntityTooLarge

  68. object RequestHeaderFieldsTooLarge

  69. object RequestTimeout

  70. object RequestURITooLong

  71. object RequestedRangeNotSatisfiable

  72. object ResetContent

  73. object ResponseStatus extends Serializable

  74. object Route extends Serializable

  75. object RouteTransformer

  76. object ScalatraBase

  77. object ScalatraContext

  78. object ScalatraKernel

  79. object ScalatraParamsImplicits extends ScalatraParamsImplicits with DefaultImplicitConversions

  80. object ScalatraServlet extends Serializable

  81. object SeeOther

  82. object ServiceUnavailable

  83. object SinatraPathPatternParser

  84. object TemporaryRedirect

  85. object TooManyRequests

  86. object Trace extends HttpMethod with Product with Serializable

  87. object Unauthorized

  88. object UnprocessableEntity

  89. object UnsupportedMediaType

  90. object UpgradeRequired

  91. object UriDecoder

  92. object UrlGenerator extends UrlGeneratorSupport

  93. object UseProxy

  94. object VariantAlsoNegotiates

  95. object XsrfTokenSupport

  96. package akka

  97. def halt(result: ActionResult): Nothing

    Definition Classes
    Control
  98. 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
  99. package i18n

  100. def pass(): Nothing

    Immediately exits from the current route.

    Immediately exits from the current route.

    Definition Classes
    Control
  101. package servlet

  102. package util

Inherited from Control

Inherited from AnyRef

Inherited from Any

Ungrouped