Liking cljdoc? Tell your friends :D

ring.util.servlet

Compatibility functions for turning a ring handler into a Java servlet.

Compatibility functions for turning a ring handler into a Java servlet.
raw docstring

build-request-mapclj

(build-request-map request)

Create a Ring request map from a HttpServletRequest object. Includes keys for both Ring 1 and Ring 2.

Create a Ring request map from a HttpServletRequest object. Includes keys
for both Ring 1 and Ring 2.
raw docstring

build-request-map-1clj

(build-request-map-1 request)

Create a Ring request map from a HttpServletRequest object. Includes keys for only Ring 1.

Create a Ring request map from a HttpServletRequest object. Includes keys
for *only* Ring 1.
raw docstring

build-request-map-2clj

(build-request-map-2 request)

Create a Ring request map from a HttpServletRequest object. Includes keys for only Ring 2.

Create a Ring request map from a HttpServletRequest object. Includes keys
for *only* Ring 2.
raw docstring

defservicecljmacro

(defservice handler)
(defservice prefix handler)
(defservice prefix handler options)

Defines a service method with an optional prefix suitable for being used by genclass to compile a HttpServlet class.

For example:

(defservice my-handler) (defservice "my-prefix-" my-handler)

Defines a service method with an optional prefix suitable for being used by
genclass to compile a HttpServlet class.

For example:

  (defservice my-handler)
  (defservice "my-prefix-" my-handler)
raw docstring

make-service-methodclj

(make-service-method handler)
(make-service-method handler options)

Turns a handler into a function that takes the same arguments and has the same return value as the service method in the HttpServlet class.

Turns a handler into a function that takes the same arguments and has the
same return value as the service method in the HttpServlet class.
raw docstring

merge-servlet-keysclj

(merge-servlet-keys request-map servlet request response)

Associate servlet-specific keys with a request map for use with legacy systems. Includes keys for both Ring 1 and Ring 2.

Associate servlet-specific keys with a request map for use with legacy
systems. Includes keys for both Ring 1 and Ring 2.
raw docstring

merge-servlet-keys-1clj

(merge-servlet-keys-1 request-map servlet request response)

Associate servlet-specific keys with a request map for use with legacy systems. Includes keys for only Ring 1.

Associate servlet-specific keys with a request map for use with legacy
systems. Includes keys for *only* Ring 1.
raw docstring

merge-servlet-keys-2clj

(merge-servlet-keys-2 request-map servlet request response)

Associate servlet-specific keys with a request map for use with legacy systems. Includes keys for only Ring 2.

Associate servlet-specific keys with a request map for use with legacy
systems. Includes keys for *only* Ring 2.
raw docstring

request-response-functionsclj

(request-response-functions)
(request-response-functions ring-version)

Given a Ring version (1 or 2), return a map of three functions, :build-request-map, :update-servlet-response and merge-servlet-keys that will build the request map, update the servlet response and add optional servlet keys.

See: build-request-map, update-servlet-response and merge-servlet-keys.

Given a Ring version (1 or 2), return a map of three functions,
`:build-request-map`, `:update-servlet-response` and `merge-servlet-keys`
that will build the request map, update the servlet response and add optional
servlet keys.

See: [[build-request-map]], [[update-servlet-response]] and
[[merge-servlet-keys]].
raw docstring

servletclj

(servlet handler)
(servlet handler options)

Create a servlet from a Ring handler.

Create a servlet from a Ring handler.
raw docstring

update-servlet-responseclj

(update-servlet-response response response-map)
(update-servlet-response response context response-map)

Update the HttpServletResponse using a Ring 1 or Ring 2 response map. Takes an optional AsyncContext.

Update the HttpServletResponse using a Ring 1 *or* Ring 2 response map.
Takes an optional AsyncContext.
raw docstring

update-servlet-response-1clj

(update-servlet-response-1 response response-map)
(update-servlet-response-1 response context response-map)

Update the HttpServletResponse using a Ring 1 response map. Takes an optional AsyncContext.

Update the HttpServletResponse using a Ring 1 response map. Takes an
optional AsyncContext.
raw docstring

update-servlet-response-2clj

(update-servlet-response-2 response response-map)
(update-servlet-response-2 response context response-map)

Update the HttpServletResponse using a Ring 2 response map. Takes an optional AsyncContext.

Update the HttpServletResponse using a Ring 2 response map. Takes an
optional AsyncContext.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close