Package

skinny.controller

feature

Permalink

package feature

Visibility
  1. Public
  2. All

Type Members

  1. trait ActionDefinitionFeature extends SkinnyMicroBase

    Permalink

    Action definitions for this controller.

    Action definitions for this controller. These definitions will be used for beforeAction/afterAction's only/except.

  2. trait AngularJSONFeature extends AngularJSONStringOps

    Permalink

    Angular application's server side API support.

  3. trait AngularXHRServerFeature extends AngularJSONFeature with JSONParamsAutoBinderFeature with AngularXSRFProtectionFeature

    Permalink

    Server side implementation for Angular apps.

  4. trait AngularXSRFCookieProviderFeature extends AnyRef

    Permalink

    Angular.js Cross Site Request Forgery (XSRF) Protection support.

    Angular.js Cross Site Request Forgery (XSRF) Protection support.

    https://docs.angularjs.org/api/ng/service/$http#cross-site-request-forgery-xsrf-protection

  5. trait AngularXSRFProtectionFeature extends AngularXSRFCookieProviderFeature

    Permalink

    Angular.js Cross Site Request Forgery (XSRF) Protection support.

    Angular.js Cross Site Request Forgery (XSRF) Protection support.

    https://docs.angularjs.org/api/ng/service/$http#cross-site-request-forgery-xsrf-protection

  6. trait AsyncBeforeAfterActionFeature extends SkinnyMicroBase with AsyncBeforeAfterDsl

    Permalink

    beforeAction/afterAction support.

    beforeAction/afterAction support.

    See also

    http://guides.rubyonrails.org/action_controller_overview.html

  7. trait AsyncCSRFProtectionFeature extends AsyncCSRFTokenSupport

    Permalink

    Provides Cross-Site Request Forgery (CSRF) protection.

  8. trait AsyncXFrameOptionsHeaderFeature extends AnyRef

    Permalink

    X-Frame-Options header support

    X-Frame-Options header support

    - https://www.owasp.org/index.php/List_of_useful_HTTP_headers

  9. trait AsyncXXSSProtectionHeaderFeature extends AnyRef

    Permalink

    X-XSS-Protection header support

    X-XSS-Protection header support

    - https://www.owasp.org/index.php/List_of_useful_HTTP_headers

  10. trait BeforeAfterActionFeature extends SkinnyMicroBase with BeforeAfterDsl

    Permalink

    beforeAction/afterAction support.

    beforeAction/afterAction support.

    See also

    http://guides.rubyonrails.org/action_controller_overview.html

  11. trait CORSFeature extends AnyRef

    Permalink

    CORS(Cross-Origin Resource Sharing) support.

    CORS(Cross-Origin Resource Sharing) support.

    http://www.w3.org/TR/cors/ http://enable-cors.org/

  12. trait CSRFProtectionFeature extends CSRFTokenSupport

    Permalink

    Provides Cross-Site Request Forgery (CSRF) protection.

  13. trait ChunkedResponseFeature extends SkinnyMicroBase with ChunkedResponseSupport

    Permalink

    Chunked Response (Transfer-Encoding: chunked).

  14. trait EnvFeature extends EnvAccessor

    Permalink

    SkinnyEnv support.

  15. trait ExplicitRedirectFeature extends RedirectionDsl with UrlGenerator with SkinnyContextInitializer

    Permalink

    Explicit redirect method support.

  16. trait FileUploadFeature extends FileUploadSupport

    Permalink

    File upload feature.

    File upload feature.

    When using file upload feature, we cannot use SkinnyController(= serlvet Filter) due to Servlet restriction.

    // src/main/scala/controller/FileUploadController.scala
    
    class FileUploadController extends SkinnyServlet with FileUploadFeature {
      def form = render("/fileUpload/form")
      def submit = {
        fileParams.get("file") match {
          case Some(file) => println(new String(file.get()))
          case None => println("file not found")
        }
      redirect(url(Controllers.fileUpload.formUrl))
    }
    
    // src/main/scala/controller/Controllers.scala
    
    object fileUpload extends FileUploadController with Routes {
      val formUrl = get("/fileupload")(form).as('form)
      val submitUrl = post("/fileupload/submit")(submit).as('submit)
    }
    fileUpload.mount(ctx)
  17. trait FlashFeature extends FlashMapSupport with BeforeAfterDsl

    Permalink

    Easy-to-use Flash support.

  18. trait FormParamsFeature extends FormParamsAccessor

    Permalink

    Provides formParams/formMultiParams.

  19. trait JSONFeature extends JSONSupport

    Permalink
  20. trait JSONParamsAutoBinderFeature extends JSONParamsAutoBinderSupport

    Permalink

    Merging JSON request body into Scalatra params.

    Merging JSON request body into Scalatra params.

    When you'd like to avoid merging JSON request body into params in some actions, please separate controllers.

  21. trait LocaleFeature extends SkinnyMicroBase

    Permalink

    Easy-to-use default/session-based Locale configuration.

  22. trait QueryParamsFeature extends QueryParamsAccessor

    Permalink

    Provides queryParams/queryMultiParams.

  23. trait RequestScopeFeature extends SkinnyMicroBase with BeforeAfterDsl with SnakeCasedParamKeysFeature with LocaleFeature with logging.LoggerProvider

    Permalink

    Request scope support.

  24. trait ScalateTemplateEngineFeature extends TemplateEngineFeature with ScalateSupport

    Permalink

    Scalate implementation of TemplateEngineSupport.

    Scalate implementation of TemplateEngineSupport.

    This is basically same as Scalatra's Scalate support, but the convention of template file path is inspired by Ruby on Rails.

    render("/members/index")

    The above code expects "src/main/webapp/WEB-INF/views/members/index.html.ssp" by default.

    If you need to use scaml instead,

    override lazy val scalateExtension: String = "scaml"

    And then, Skinny expects "src/main/webapp/WEB-INF/views/members/index.html.scaml"

  25. trait SensitiveParametersFeature extends AnyRef

    Permalink

    Filtering sensitive parameters.

    Filtering sensitive parameters.

    config.filter_parameters in Rails.

  26. trait SkinnyControllerCommonBase extends SkinnyMicroBase with ApiFormats with EnvFeature with QueryParamsFeature with FormParamsFeature with UrlGeneratorSupport with ExplicitRedirectFeature with ActionDefinitionFeature with RequestScopeFeature with ChunkedResponseFeature with LocaleFeature with JSONFeature with ValidationFeature with TimeLoggingFeature with SnakeCasedParamKeysFeature with XContentTypeOptionsNosniffHeaderFeature with RoutesAsImplicits with ParametersGetAsImplicits with ParamsPermitImplicits with SkinnyFilterActivation with logging.LoggerProvider

    Permalink
  27. trait SnakeCasedParamKeysFeature extends SkinnyMicroBase

    Permalink

    Supports snake_case'd keys for parameter names.

  28. trait TemplateEngineFeature extends SkinnyControllerCommonBase with RequestScopeFeature with JSONSupport with logging.LoggerProvider

    Permalink

    TemplateEngine support for Skinny app.

  29. trait ThreadLocalRequestFeature extends AnyRef

    Permalink
  30. trait TimeLoggingFeature extends TimeLogging with SensitiveParametersFeature

    Permalink

    Enables time logging.

  31. trait ValidationFeature extends AnyRef

    Permalink

    Validation support for Skinny app.

  32. trait XContentTypeOptionsNosniffHeaderFeature extends AnyRef

    Permalink

    X-Content-Type-Options header support.

    X-Content-Type-Options header support.

    - https://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx?Redirected=true - http://msdn.microsoft.com/en-us/library/ie/gg622941(v=vs.85).aspx - https://github.com/blog/1482-heads-up-nosniff-header-support-coming-to-chrome-and-firefox - https://www.owasp.org/index.php/List_of_useful_HTTP_headers

  33. trait XFrameOptionsHeaderFeature extends AnyRef

    Permalink

    X-Frame-Options header support

    X-Frame-Options header support

    - https://www.owasp.org/index.php/List_of_useful_HTTP_headers

  34. trait XXSSProtectionHeaderFeature extends AnyRef

    Permalink

    X-XSS-Protection header support

    X-XSS-Protection header support

    - https://www.owasp.org/index.php/List_of_useful_HTTP_headers

Value Members

  1. object AngularJSSpecification

    Permalink
  2. object AsyncCSRFProtectionFeature

    Permalink
  3. object CSRFProtectionFeature

    Permalink
  4. object RequestScopeFeature extends logging.LoggerProvider

    Permalink
  5. object ValidationFeature

    Permalink

Ungrouped