org

scalatra

package scalatra

Visibility
  1. Public
  2. All

Type Members

  1. type Action = () ⇒ Any

    Definition Classes
    package
  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. type ContentTypeInferrer = PartialFunction[Any, String]

    Definition Classes
    package
  6. trait Control extends AnyRef

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

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

  8. case class CookieOptions(domain: String, path: String, maxAge: Int, secure: Boolean, comment: String, httpOnly: Boolean, version: Int, encoding: String) extends Product with Serializable

  9. trait CookieSupport extends Handler with Initializable

  10. trait CoreDsl extends Handler with Control

    The core Scalatra DSL.

  11. trait CorsSupport extends Handler with Initializable

  12. trait CsrfTokenSupport extends AnyRef

    Provides cross-site request forgery protection.

  13. trait DefaultValue[Z] extends AnyRef

    A DefaultValue in type Z provides a default value for a given type Z

  14. trait DefaultValueImplicits extends AnyRef

  15. trait DefaultValueMethods extends AnyRef

  16. trait DefaultValues extends DefaultValueMethods with DefaultValueImplicits

  17. trait DynamicScope extends AnyRef

    The Scalatra DSL requires a dynamically scoped request and response.

  18. type ErrorHandler = PartialFunction[Throwable, Any]

    Definition Classes
    package
  19. case class ExtensionMethod(name: String) extends HttpMethod with Product with Serializable

  20. class FlashMap extends MutableMapWithIndifferentAccess[Any] with Serializable

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

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

  22. trait GZipSupport extends Handler with Initializable

    Scalatra handler for gzipped responses.

  23. trait Handler extends ServletApiImplicits

    A Handler is the Scalatra abstraction for an object that operates on a request/response pair.

  24. sealed trait HttpMethod extends AnyRef

  25. abstract class HttpVersion extends Ordered[HttpVersion]

  26. trait LifeCycle extends ServletApiImplicits

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

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

  28. trait MethodOverride extends Handler

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

  29. type MultiParams = MultiMap

    Definition Classes
    package
  30. case class PathPattern(regex: Regex, captureGroupNames: List[String]) extends Product with Serializable

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

  31. trait PathPatternParser extends AnyRef

    Parses a string into a path pattern for routing.

  32. final class PathPatternRouteMatcher extends RouteMatcher

  33. class RailsPathPatternParser extends RegexPathPatternParser

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

  34. final class RailsRouteMatcher extends RouteMatcher with ReversibleRouteMatcher

    An implementation of Rails' path pattern syntax

  35. trait RegexPathPatternParser extends PathPatternParser with RegexParsers

  36. final class RegexRouteMatcher extends RouteMatcher

    A route matcher for regular expressions.

  37. type RenderPipeline = PartialFunction[Any, Any]

    Definition Classes
    package
  38. case class ResponseStatus(code: Int, message: String) extends Ordered[ResponseStatus] with Product with Serializable

  39. trait ReversibleRouteMatcher extends AnyRef

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

  40. case class Route(routeMatchers: Seq[RouteMatcher], action: () ⇒ Any, contextPath: () ⇒ String, metadata: Map[Symbol, Any]) extends Product with Serializable

    A route is a set of matchers and an action.

  41. trait RouteMatcher extends (Route) ⇒ Route

    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.

  42. class RouteRegistry extends AnyRef

  43. type RouteTransformer = (Route) ⇒ Route

    Definition Classes
    package
  44. trait ScalatraBase extends CoreDsl with DynamicScope with Initializable with ScalatraParamsImplicits with DefaultImplicitConversions

    The base implementation of the Scalatra DSL.

  45. class ScalatraException extends Exception

  46. trait ScalatraFilter extends Filter with ServletBase

    An implementation of the Scalatra DSL in a filter.

  47. trait ScalatraParamsImplicits extends AnyRef

    Add some implicits

  48. abstract class ScalatraServlet extends HttpServlet with ServletBase with Initializable

    An implementation of the Scalatra DSL in a servlet.

  49. sealed trait Scheme extends AnyRef

  50. trait SessionSupport extends ServletApiImplicits

    This trait provides session support for stateful applications.

  51. class SinatraPathPatternParser extends RegexPathPatternParser

    A Sinatra-compatible route path pattern parser.

  52. final class SinatraRouteMatcher extends RouteMatcher with ReversibleRouteMatcher

    An implementation of Sinatra's path pattern syntax.

  53. trait SslRequirement extends Handler

    Redirects unsecured requests to the corresponding secure URL.

  54. final class StatusCodeRouteMatcher extends RouteMatcher

  55. class SweetCookies extends ServletApiImplicits

  56. trait UrlGeneratorSupport extends AnyRef

    Adds support for generating URIs from routes and their params.

  57. trait XsrfTokenSupport extends AnyRef

  58. trait GetResponseStatusSupport extends AnyRef

    Annotations
    @deprecated
    Deprecated

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

  59. type ScalatraKernel = ServletBase

    Definition Classes
    package
    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.

  60. trait TypedParamSupport extends ScalatraBase

    Annotations
    @deprecated
    Deprecated

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

  61. trait UrlSupport extends AnyRef

    Provides utility methods for the creation of URL strings.

Value Members

  1. object Accepted extends AnyRef

  2. object AlreadyReported extends AnyRef

  3. object ApiFormats extends AnyRef

  4. object BadGateway extends AnyRef

  5. object BadRequest extends AnyRef

  6. object Conflict extends AnyRef

  7. object Connect extends HttpMethod with Product with Serializable

  8. object Cookie extends Serializable

  9. object CookieSupport extends AnyRef

  10. object CorsSupport extends AnyRef

  11. object Created extends AnyRef

  12. object CsrfTokenSupport extends AnyRef

  13. object DefaultValueMethods extends DefaultValueMethods

  14. object DefaultValues extends DefaultValues

  15. object Delete extends HttpMethod with Product with Serializable

  16. val EnvironmentKey: String

    Definition Classes
    package
  17. object ExpectationFailed extends AnyRef

  18. object FailedDependency extends AnyRef

  19. object FlashMapSupport extends AnyRef

  20. object Forbidden extends AnyRef

  21. object Found extends AnyRef

  22. object GatewayTimeout extends AnyRef

  23. object GenerateId extends AnyRef

  24. object Get extends HttpMethod with Product with Serializable

  25. object Gone extends AnyRef

  26. object HTTPVersionNotSupported extends AnyRef

  27. object Head extends HttpMethod with Product with Serializable

  28. object Http extends Scheme with Product with Serializable

  29. object Http10 extends HttpVersion

  30. object Http11 extends HttpVersion

  31. object HttpMethod extends AnyRef

  32. object Https extends Scheme with Product with Serializable

  33. object IMUsed extends AnyRef

  34. object InsufficientStorage extends AnyRef

  35. object InternalServerError extends AnyRef

  36. object LengthRequired extends AnyRef

  37. object Locked extends AnyRef

  38. object LoopDetected extends AnyRef

  39. object MethodNotAllowed extends AnyRef

  40. object MethodOverride extends AnyRef

  41. object MovedPermanently extends AnyRef

  42. val MultiParamsKey: String

    Definition Classes
    package
  43. object MultiStatus extends AnyRef

  44. object MultipleChoices extends AnyRef

  45. object NetworkAuthenticationRequired extends AnyRef

  46. object NoContent extends AnyRef

  47. object NonAuthoritativeInformation extends AnyRef

  48. object NotAcceptable extends AnyRef

  49. object NotExtended extends AnyRef

  50. object NotFound extends AnyRef

  51. object NotImplemented extends AnyRef

  52. object NotModified extends AnyRef

  53. object Ok extends AnyRef

  54. object Options extends HttpMethod with Product with Serializable

  55. object PartialContent extends AnyRef

  56. object Patch extends HttpMethod with Product with Serializable

  57. object PathPatternParser extends AnyRef

  58. object PaymentRequired extends AnyRef

  59. object PermanentRedirect extends AnyRef

  60. object Post extends HttpMethod with Product with Serializable

  61. object PreconditionFailed extends AnyRef

  62. object PreconditionRequired extends AnyRef

  63. object ProxyAuthenticationRequired extends AnyRef

  64. object Put extends HttpMethod with Product with Serializable

  65. object RailsPathPatternParser extends AnyRef

  66. object RequestEntityTooLarge extends AnyRef

  67. object RequestHeaderFieldsTooLarge extends AnyRef

  68. object RequestTimeout extends AnyRef

  69. object RequestURITooLong extends AnyRef

  70. object RequestedRangeNotSatisfiable extends AnyRef

  71. object ResetContent extends AnyRef

  72. object ResponseStatus extends Serializable

  73. object Route extends Serializable

  74. object ScalatraBase extends AnyRef

  75. object ScalatraKernel extends AnyRef

  76. object ScalatraParamsImplicits extends ScalatraParamsImplicits with DefaultImplicitConversions

  77. object ScalatraServlet extends Serializable

  78. object SeeOther extends AnyRef

  79. object ServiceUnavailable extends AnyRef

  80. object SinatraPathPatternParser extends AnyRef

  81. object TemporaryRedirect extends AnyRef

  82. object TooManyRequests extends AnyRef

  83. object Trace extends HttpMethod with Product with Serializable

  84. object Unauthorized extends AnyRef

  85. object UnprocessableEntity extends AnyRef

  86. object UnsupportedMediaType extends AnyRef

  87. object UpgradeRequired extends AnyRef

  88. object UriDecoder extends AnyRef

  89. object UrlGenerator extends UrlGeneratorSupport

  90. object UseProxy extends AnyRef

  91. object VariantAlsoNegotiates extends AnyRef

  92. object XsrfTokenSupport extends AnyRef

  93. def halt(result: ActionResult): Nothing

    Definition Classes
    Control
  94. def halt[T](status: Integer, body: T, headers: Map[String, String], reason: String)(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
  95. package i18n

  96. def pass(): Nothing

    Immediately exits from the current route.

    Immediately exits from the current route.

    Definition Classes
    Control
  97. package servlet

  98. package util