trait DynamicScope extends RequestResponseScope
The Scalatra DSL requires a dynamically scoped request and response. This trick is explained in greater detail in Gabriele Renzi's blog post about Step, out of which Scalatra grew:
http://www.riffraff.info/2009/4/11/step-a-scala-web-picoframework
- Alphabetic
- By Inheritance
- DynamicScope
- RequestResponseScope
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
implicit
def
request: HttpServletRequest
The currently scoped request.
The currently scoped request. Valid only inside the
handle
method.- Definition Classes
- DynamicScope → RequestResponseScope
-
implicit
def
response: HttpServletResponse
The currently scoped response.
The currently scoped response. Valid only inside the
handle
method.- Definition Classes
- DynamicScope → RequestResponseScope
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withRequest[A](request: HttpServletRequest)(f: ⇒ A): A
Executes the block with the given request bound to the
request
method.Executes the block with the given request bound to the
request
method.- Attributes
- protected
- Definition Classes
- DynamicScope → RequestResponseScope
-
def
withRequestResponse[A](request: HttpServletRequest, response: HttpServletResponse)(f: ⇒ A): A
- Attributes
- protected[org.scalatra]
- Definition Classes
- DynamicScope → RequestResponseScope
-
def
withResponse[A](response: HttpServletResponse)(f: ⇒ A): A
Executes the block with the given response bound to the
response
method.Executes the block with the given response bound to the
response
method.- Attributes
- protected
- Definition Classes
- DynamicScope → RequestResponseScope
Deprecated Value Members
-
def
_request: DynamicVariable[HttpServletRequest]
- Attributes
- protected
- Annotations
- @deprecated
- Deprecated
(Since version 2.1.0) Do not invoke directly. Use
withRequest
to change the binding, or request to get the value
-
def
_response: DynamicVariable[HttpServletResponse]
- Attributes
- protected
- Annotations
- @deprecated
- Deprecated
(Since version 2.1.0) Do not invoke directly. Use
withResponse
to change the binding, orresponse
to get the value