Uses of Class
org.summerboot.jexpress.nio.server.domain.ServiceContext
Packages that use ServiceContext
Package
Description
-
Uses of ServiceContext in org.summerboot.jexpress.nio.client
Methods in org.summerboot.jexpress.nio.client with parameters of type ServiceContextModifier and TypeMethodDescriptionprotected <R> RRPCResult.fromJson(com.fasterxml.jackson.databind.ObjectMapper jacksonMapper, com.fasterxml.jackson.databind.JavaType responseType, Class<R> responseClass, ServiceContext context) protected <T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate_HTTPClientImpl.onInterrupted(HttpRequest req, ServiceContext serviceContext, Throwable ex) protected <T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate_HTTPClientImpl.rpcEx(ServiceContext serviceContext, HttpRequest.Builder reqBuilder, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) protected <T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate_HTTPClientImpl.rpcEx(ServiceContext serviceContext, HttpRequest req, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) protected <T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate_HTTPClientImpl.rpcEx(ServiceContext context, HttpRequest req, String reqbody, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) Need to call RPCResult.update(...) to deserialize JSON to success/error resultRPCResult.update(com.fasterxml.jackson.databind.JavaType successResponseType, Class<E> errorResponseClass, ServiceContext context) RPCResult.update(com.fasterxml.jackson.databind.JavaType successResponseType, Class<T> successResponseClass, Class<E> errorResponseClass, ServiceContext context) RPCResult.update(com.fasterxml.jackson.databind.ObjectMapper jacksonMapper, com.fasterxml.jackson.databind.JavaType successResponseType, Class<T> successResponseClass, Class<E> errorResponseClass, ServiceContext context) RPCResult.update(Class<T> successResponseClass, Class<E> errorResponseClass, ServiceContext context) -
Uses of ServiceContext in org.summerboot.jexpress.nio.server
Methods in org.summerboot.jexpress.nio.server with parameters of type ServiceContextModifier and TypeMethodDescriptionvoidBootHttpLifecycleHandler.afterLogging(String logContent, io.netty.handler.codec.http.HttpHeaders httpHeaders, io.netty.handler.codec.http.HttpMethod httpMethod, String httpRequestUri, String httpPostRequestBody, ServiceContext context, long queuingTime, long processTime, long responseTime, long responseContentLength, Throwable ioEx) protected voidBootHttpRequestHandler.afterLogging(String logContent, io.netty.handler.codec.http.HttpHeaders httpHeaders, io.netty.handler.codec.http.HttpMethod httpMethod, String httpRequestUri, String httpPostRequestBody, ServiceContext context, long queuingTime, long processTime, long responseTime, long responseContentLength, Throwable ioEx) voidHttpLifecycleHandler.afterLogging(String logContent, io.netty.handler.codec.http.HttpHeaders httpHeaders, io.netty.handler.codec.http.HttpMethod httpMethod, String httpRequestUri, String httpPostRequestBody, ServiceContext context, long queuingTime, long processTime, long responseTime, long responseContentLength, Throwable ioEx) step4protected abstract voidNioServerHttpRequestHandler.afterLogging(String logContent, io.netty.handler.codec.http.HttpHeaders httpHeaders, io.netty.handler.codec.http.HttpMethod httpMethod, String httpRequestUri, String httpPostRequestBody, ServiceContext context, long queuingTime, long processTime, long responseTime, long responseContentLength, Throwable ioEx) voidBootHttpLifecycleHandler.afterProcess(RequestProcessor processor, io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) voidHttpLifecycleHandler.afterProcess(RequestProcessor processor, io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) step1protected abstract CallerBootHttpFileUploadHandler.authenticate(io.netty.handler.codec.http.HttpHeaders httpHeaders, ServiceContext context) protected booleanBootHttpRequestHandler.authenticationCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) create User object based on token in the header, then set User object to contextbooleanRequestProcessor.authorizationCheck(io.netty.channel.ChannelHandlerContext channelHandlerCtx, io.netty.handler.codec.http.HttpHeaders httpHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context, int badRequestErrorCode) BootHttpLifecycleHandler.beforeLogging(String originallLogContent, io.netty.handler.codec.http.HttpHeaders httpHeaders, io.netty.handler.codec.http.HttpMethod httpMethod, String httpRequestUri, String httpPostRequestBody, ServiceContext context, long queuingTime, long processTime, long responseTime, long responseContentLength, Throwable ioEx) protected StringBootHttpRequestHandler.beforeLogging(String originallLogContent, io.netty.handler.codec.http.HttpHeaders httpHeaders, io.netty.handler.codec.http.HttpMethod httpMethod, String httpRequestUri, String httpPostRequestBody, ServiceContext context, long queuingTime, long processTime, long responseTime, long responseContentLength, Throwable ioEx) HttpLifecycleHandler.beforeLogging(String originallLogContent, io.netty.handler.codec.http.HttpHeaders httpHeaders, io.netty.handler.codec.http.HttpMethod httpMethod, String httpRequestUri, String httpPostRequestBody, ServiceContext context, long queuingTime, long processTime, long responseTime, long responseContentLength, Throwable ioEx) step3protected abstract StringNioServerHttpRequestHandler.beforeLogging(String originallLogContent, io.netty.handler.codec.http.HttpHeaders httpHeaders, io.netty.handler.codec.http.HttpMethod httpMethod, String httpRequestUri, String httpPostRequestBody, ServiceContext context, long queuingTime, long processTime, long responseTime, long responseContentLength, Throwable ioEx) booleanBootHttpLifecycleHandler.beofreProcess(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) booleanHttpLifecycleHandler.beofreProcess(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) step0 - do any validation checks before processingprotected voidBootHttpExceptionHandler.nak(ServiceContext context, io.netty.handler.codec.http.HttpResponseStatus httpResponseStatus, int appErrorCode, String errorMessage) protected voidBootHttpExceptionHandler.nakError(ServiceContext context, io.netty.handler.codec.http.HttpResponseStatus httpResponseStatus, int appErrorCode, String errorMessage, Throwable ex) Build negative acknowledgement context with exception at ERROR level when ex is not nullprotected voidBootHttpExceptionHandler.nakFatal(ServiceContext context, io.netty.handler.codec.http.HttpResponseStatus httpResponseStatus, int appErrorCode, String errorMessage, Throwable ex, Collection<String> emailTo, String content) Build negative acknowledgement context with exception at FATAL level, no matter ex is null or notvoidBootHttpExceptionHandler.onActionNotFound(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) voidHttpExceptionHandler.onActionNotFound(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) voidBootHttpExceptionHandler.onHttpConnectTimeoutException(HttpConnectTimeoutException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionHandler.onHttpConnectTimeoutException(HttpConnectTimeoutException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) Happens when a connection, over which an HttpRequest is intended to be sent, is not successfully established within a specified time period.voidBootHttpExceptionHandler.onHttpTimeoutException(HttpTimeoutException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionHandler.onHttpTimeoutException(HttpTimeoutException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) Happens when a context is not received within a specified time period.voidBootHttpExceptionHandler.onInterruptedException(InterruptedException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionHandler.onInterruptedException(InterruptedException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootHttpExceptionHandler.onIOException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionHandler.onIOException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootHttpExceptionHandler.onNamingException(NamingException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionHandler.onNamingException(NamingException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootHttpExceptionHandler.onPersistenceException(jakarta.persistence.PersistenceException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionHandler.onPersistenceException(jakarta.persistence.PersistenceException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootHttpExceptionHandler.onRejectedExecutionException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionHandler.onRejectedExecutionException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootHttpExceptionHandler.onUnexpectedException(Throwable ex, RequestProcessor processor, io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) voidHttpExceptionHandler.onUnexpectedException(Throwable ex, RequestProcessor processor, io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) voidRequestProcessor.process(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context, int errorcodeRequestValidationFailed) static longNioHttpUtil.sendFile(io.netty.channel.ChannelHandlerContext ctx, boolean isKeepAlive, ServiceContext serviceContext) static longNioHttpUtil.sendResponse(io.netty.channel.ChannelHandlerContext ctx, boolean isKeepAlive, ServiceContext serviceContext, ErrorAuditor errorAuditor, ProcessorSettings processorSettings) static voidNioHttpUtil.sendWebResource(String httpRequestPath, ServiceContext context) static voidNioHttpUtil.sendWebResource(ServiceRequest request, ServiceContext response) protected ProcessorSettingsBootHttpRequestHandler.service(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) protected abstract ProcessorSettingsNioServerHttpRequestHandler.service(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpHeaders, io.netty.handler.codec.http.HttpMethod httpMethod, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) -
Uses of ServiceContext in org.summerboot.jexpress.nio.server.domain
Methods in org.summerboot.jexpress.nio.server.domain that return ServiceContextModifier and TypeMethodDescriptionset or remove attribute valuestatic ServiceContextServiceContext.build(long hit) static ServiceContextServiceContext.build(io.netty.channel.ChannelHandlerContext ctx, long hit, long startTs, io.netty.handler.codec.http.HttpHeaders requestHeaders, io.netty.handler.codec.http.HttpMethod requesMethod, String requesURI, String requestBody) <T extends Caller>
ServiceContextServiceContext.caller(T caller) ServiceContext.charsetName(String charsetName) ServiceContext.clientAcceptContentType(String clientAcceptContentType) ServiceContext.contentType(String contentType) ServiceContext.data(byte[] data) ServiceContext.downloadMode(boolean downloadMode) Set errorServiceContext.errors(Collection<Err> es) Clear or set errorsServiceContext.level(org.apache.logging.log4j.Level level) ServiceContext.logRequestBody(boolean enabled) ServiceContext.logRequestHeader(boolean enabled) ServiceContext.logResponseBody(boolean enabled) ServiceContext.logResponseHeader(boolean enabled) ServiceContext.reportError(StringBuilder sb) ServiceContext.reportMemo(StringBuilder sb) ServiceContext.reportPOI(StringBuilder sb) ServiceContext.reportPOI(NioConfig cfg, StringBuilder sb) ServiceContext.reset()ServiceContext.responseEncoder(ResponseEncoder responseEncoder) ServiceContext.responseHeader(String key, Iterable<?> values) ServiceContext.responseHeader(String key, Object value) ServiceContext.responseHeaders(io.netty.handler.codec.http.HttpHeaders headers) ServiceContext.responseHeaders(Map<String, Iterable<?>> hs) ServiceContext.status(io.netty.handler.codec.http.HttpResponseStatus status) ServiceContext.status(io.netty.handler.codec.http.HttpResponseStatus status, Boolean autoConvertBlank200To204) Methods in org.summerboot.jexpress.nio.server.domain with parameters of type ServiceContextModifier and TypeMethodDescriptionServiceRequest.getFormParam(String key, ServiceContext context, int errorCode) ServiceRequest.getQueryParam(String key, ServiceContext context, int errorCode) -
Uses of ServiceContext in org.summerboot.jexpress.nio.server.ws.rs
Methods in org.summerboot.jexpress.nio.server.ws.rs with parameters of type ServiceContextModifier and TypeMethodDescriptionbooleanJaxRsRequestProcessor.authorizationCheck(io.netty.channel.ChannelHandlerContext channelHandlerCtx, io.netty.handler.codec.http.HttpHeaders httpHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context, int badRequestErrorCode) voidBootController.changeStatus(boolean pause, ServiceContext context) voidBootController.inspect(ServiceContext context) voidBootController.loadTestBenchmarkGet1(ServiceRequest request, ServiceContext context, long wait) voidBootController.loadTestBenchmarkGet2(ServiceRequest request, ServiceContext context, long wait) voidBootController.loadTestBenchmarkPost1(ServiceRequest request, ServiceContext context, long wait) voidBootController.loadTestBenchmarkPost2(ServiceRequest request, ServiceContext context, long wait) BootController.login(String uid, String pwd, ServiceContext context) voidBootController.logout(ServiceRequest request, ServiceContext context) voidJaxRsRequestProcessor.process(io.netty.channel.ChannelHandlerContext channelHandlerCtx, io.netty.handler.codec.http.HttpHeaders httpHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context, int errorcodeRequestValidationFailed) voidWebResourceController.requestWebResource(ServiceRequest request, ServiceContext response) send web resource images, css, js, etc.voidBootController.version(ServiceContext context) -
Uses of ServiceContext in org.summerboot.jexpress.security.auth
Methods in org.summerboot.jexpress.security.auth with parameters of type ServiceContextModifier and TypeMethodDescriptionprotected abstract CallerBootAuthenticator.authenticate(String usename, String password, E metaData, AuthenticatorListener listener, ServiceContext context) protected CallerLDAPAuthenticator.authenticate(String usename, String password, M metaData, AuthenticatorListener listener, ServiceContext context) booleanAuthenticator.customizedAuthorizationCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) Extra authorization checks before processingbooleanBootAuthenticator.customizedAuthorizationCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) voidAuthenticator.logoutToken(io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, AuthTokenCache cache, ServiceContext context) Success HTTP Status: 204 No ContentvoidAuthenticator.logoutToken(String authToken, AuthTokenCache cache, ServiceContext context) Success HTTP Status: 204 No ContentvoidBootAuthenticator.logoutToken(io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, AuthTokenCache cache, ServiceContext context) voidBootAuthenticator.logoutToken(String authToken, AuthTokenCache cache, ServiceContext context) Authenticator.signJWT(String username, String pwd, T metaData, int validForMinutes, ServiceContext context) Success HTTP Status: 201 CreatedBootAuthenticator.signJWT(String usename, String pwd, E metaData, int validForMinutes, ServiceContext context) Authenticator.verifyToken(io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, AuthTokenCache cache, Integer errorCode, ServiceContext context) Success HTTP Status: 200 OKAuthenticator.verifyToken(String authToken, AuthTokenCache cache, Integer errorCode, ServiceContext context) BootAuthenticator.verifyToken(io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, AuthTokenCache cache, Integer errorCode, ServiceContext context) BootAuthenticator.verifyToken(String authToken, AuthTokenCache cache, Integer errorCode, ServiceContext context)