SslRequirement

org.scalatra.SslRequirement
trait SslRequirement extends Handler, ServletApiImplicits

Redirects unsecured requests to the corresponding secure URL.

Attributes

Graph
Supertypes
trait Handler
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def handle(req: HttpServletRequest, res: HttpServletResponse): Unit

Handles a request and writes to the response.

Handles a request and writes to the response.

Attributes

protected def securePortMap: PartialFunction[Int, Int]

Maps unsecured ports to secure ports. By default, 80 redirects to 443, and 8080 to 8443.

Maps unsecured ports to secure ports. By default, 80 redirects to 443, and 8080 to 8443.

Attributes

Implicits

Inherited implicits

implicit def enrichRequest(request: HttpServletRequest): RichRequest

Attributes

Inherited from:
ServletApiImplicits
implicit def enrichResponse(response: HttpServletResponse): RichResponse

Attributes

Inherited from:
ServletApiImplicits
implicit def enrichServletContext(servletContext: ServletContext): RichServletContext

Attributes

Inherited from:
ServletApiImplicits
implicit def enrichSession(session: HttpSession): RichSession

Attributes

Inherited from:
ServletApiImplicits