- All Superinterfaces:
Context
public interface SpiContext extends Context
Extension to Context for processing the request.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.avaje.jex.Context
Context.Cookie -
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_JSONstatic StringAPPLICATION_X_JSON_STREAMstatic StringTEXT_HTMLstatic StringTEXT_HTML_UTF8static StringTEXT_PLAINstatic StringTEXT_PLAIN_UTF8 -
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.voidperformRedirect()Preform the redirect as part of Exception handling typically due to before handler.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, jsonStream, jsonStream, matchedPath, method, path, pathParam, pathParamMap, port, protocol, queryParam, queryParamMap, queryParams, queryString, redirect, redirect, removeCookie, removeCookie, render, render, responseHeader, scheme, sessionAttribute, sessionAttribute, sessionAttributeMap, status, status, text, uploadedFile, uploadedFiles, uploadedFiles, url, userAgent, write
-
Field Details
-
TEXT_HTML
- See Also:
- Constant Field Values
-
TEXT_PLAIN
- See Also:
- Constant Field Values
-
TEXT_HTML_UTF8
- See Also:
- Constant Field Values
-
TEXT_PLAIN_UTF8
- See Also:
- Constant Field Values
-
APPLICATION_JSON
- See Also:
- Constant Field Values
-
APPLICATION_X_JSON_STREAM
- See Also:
- Constant Field Values
-
-
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. -
performRedirect
void performRedirect()Preform the redirect as part of Exception handling typically due to before handler.
-