Even though SISCweb applies an abstraction layer over characteristics of the HTTP protocol, it is still at times convenient to access the details of requests, responses, sessions and the servlet context in which they live.
For this reason SISCweb provides wrappers around all the methods
of the Request
,
Response
, Session
and
ServletContext
objects. All the procedures
operate on the instances current at the time of invocation.
Requires:
(import siscweb/request)
Located in:
siscweb.jar
This module provides wrappers around the Request object current at the time of invocation.
procedure:
(request/get-parameter name) => string
procedure:
(request/get-parameter-values name) => list
procedure:
(request/get-session [create?]) => javax.servlet.http.HttpSession
Requires:
(import siscweb/response)
Located in:
siscweb.jar
This module provides wrappers around the Response object current at the time of invocation.
procedure:
(response/add-header! name value) => #!void
procedure:
(response/open-output-port) => character-output-port
procedure:
(request/set-content-type! type) => #!void
procedure:
(response/set-header! name value) => #!void
Requires:
(import siscweb/session)
Located in:
siscweb.jar
This module provides wrappers around the Response object current at the time of invocation.
procedure:
(session/make-parameter name) => proc
Requires:
(import siscweb/context)
Located in:
siscweb.jar
This module provides wrappers around the ServletContext object.
procedure:
(context/get uripath) => javax.servlet.ServletContext
Returns a ServletContext object that corresponds to a specified URL on the server.
In a security conscious environment, the servlet container may return
for a given URL.
procedure:
(context/get-dispatcher c-url) => proc
procedure:(context/get-named-dispatcher servlet-name) => proc
procedure:
(context/get-resource file-path) => url
procedure:
(context/get-resource-paths) => string
procedure:
(context/make-parameter name) => proc
procedure:
(context/remove-java-attribute! name) => #!void
procedure:
(context/set-java-attribute! name jobject) => #!void
If listeners are configured on the ServletContext the container notifies them accordingly.
If a
jnull
value is passed, the effect is the same as callingcontext/remove-java-attribute!
.