- All Superinterfaces:
Context
public interface SpiContext extends Context
Extension to Context for processing the request.
-
Method Summary
Modifier and Type Method Description InputStreaminputStream()Return the request inputStream to read content from.OutputStreamoutputStream()Return the response outputStream to write content to.voidsetMode(Routing.Type type)Set to indicate BEFORE, Handler and AFTER modes of the request.Methods inherited from interface io.avaje.jex.Context
attribute, attribute, attributeMap, body, bodyAsBytes, bodyAsClass, contentLength, contentType, contentType, contextPath, cookie, cookie, cookie, cookie, cookieMap, formParam, formParam, formParamMap, formParams, fullUrl, header, header, headerMap, host, html, ip, isMultipart, isMultipartFormData, json, matchedPath, method, path, pathParam, pathParamMap, port, protocol, queryParam, queryParamMap, queryParams, queryString, redirect, redirect, removeCookie, removeCookie, render, render, req, res, scheme, sessionAttribute, sessionAttribute, sessionAttributeMap, splat, splats, status, status, text, uploadedFile, uploadedFiles, uploadedFiles, url, userAgent, write
-
Method Details
-
outputStream
OutputStream outputStream()Return the response outputStream to write content to. -
inputStream
InputStream inputStream()Return the request inputStream to read content from. -
setMode
Set to indicate BEFORE, Handler and AFTER modes of the request.
-