Uses of Class
org.summerboot.jexpress.nio.server.domain.ServiceContext
Packages that use ServiceContext
Package
Description
-
Uses of ServiceContext in org.summerboot.jexpress.boot.event
Methods in org.summerboot.jexpress.boot.event with parameters of type ServiceContextModifier and TypeMethodDescriptionvoidHttpLifecycleHandler.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) voidHttpLifecycleListener.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) step5voidHttpLifecycleHandler.afterProcess(boolean preProcessResult, Object processResult, Throwable processException, 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) voidHttpLifecycleListener.afterProcess(boolean preProcessResult, Object processResult, Throwable processException, 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) step1 - after process is done, before sending response to clientvoidHttpLifecycleHandler.afterService(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) voidHttpLifecycleListener.afterService(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) step2 - after sending response to client, before starting loggingHttpLifecycleHandler.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) HttpLifecycleListener.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) step4booleanHttpLifecycleHandler.beforeProcess(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) booleanHttpLifecycleListener.beforeProcess(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) step0 - do any validation checks before processingprotected voidHttpExceptionHandler.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 notvoidHttpExceptionHandler.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) voidHttpExceptionListener.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.onConnectException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionListener.onConnectException(Throwable 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) voidHttpExceptionListener.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.voidHttpExceptionHandler.onHttpTimeoutException(HttpTimeoutException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionListener.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.voidHttpExceptionHandler.onInterruptedException(InterruptedException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionListener.onInterruptedException(InterruptedException 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) voidHttpExceptionListener.onIOException(Throwable 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) protected voidHttpExceptionHandler.onNamingException(NamingException ex, Throwable cause, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionListener.onNamingException(NamingException 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) protected voidHttpExceptionHandler.onPersistenceException(jakarta.persistence.PersistenceException ex, Throwable cause, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidHttpExceptionListener.onPersistenceException(jakarta.persistence.PersistenceException 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) voidHttpExceptionListener.onRejectedExecutionException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, 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) voidHttpExceptionListener.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) -
Uses of ServiceContext in org.summerboot.jexpress.integration.httpclient
Methods in org.summerboot.jexpress.integration.httpclient 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) <T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate_HTTPClientImpl.rpcEx(ServiceContext serviceContext, HttpRequest.Builder reqBuilder, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) <T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate_HTTPClientImpl.rpcEx(ServiceContext serviceContext, HttpRequest req, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) <T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate_HTTPClientImpl.rpcEx(ServiceContext context, HttpRequest originRequest, String originRequestBody, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) Need to call RPCResult.update(...) to deserialize JSON to success/error result<T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate_HTTPClientImpl.rpcEx(ServiceContext context, RPCResult<T, E> request, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) Reset request<T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate.rpcEx(ServiceContext serviceContext, HttpRequest.Builder reqBuilder, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) <T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate.rpcEx(ServiceContext serviceContext, HttpRequest req, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) <T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate.rpcEx(ServiceContext context, HttpRequest originRequest, String originRequestBody, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) Need to call RPCResult.update(...) to deserialize JSON to success/error result<T,E extends ServiceErrorConvertible>
RPCResult<T,E> RPCDelegate.rpcEx(ServiceContext context, RPCResult<T, E> request, io.netty.handler.codec.http.HttpResponseStatus... successStatusList) Reset requestRPCResult.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
Fields in org.summerboot.jexpress.nio.server declared as ServiceContextModifier and TypeFieldDescriptionprotected final ServiceContextBootHttpFileUploadHandler.contextMethods in org.summerboot.jexpress.nio.server with parameters of type ServiceContextModifier and TypeMethodDescriptionprotected 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) protected 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) protected voidBootHttpRequestHandler.afterService(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) protected abstract voidNioServerHttpRequestHandler.afterService(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) protected 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) 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) protected 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) protected abstract longBootHttpFileUploadHandler.getCallerFileUploadSizeLimit_Bytes(Caller caller, ServiceContext context) protected abstract booleanBootHttpFileUploadHandler.isValidRequestPath(io.netty.handler.codec.http.HttpMethod method, String httpRequestPath, ServiceContext context) protected abstract TBootHttpFileUploadHandler.onFileUploaded(io.netty.channel.ChannelHandlerContext ctx, String fileName, File file, Map<String, String> params, Caller caller, ServiceContext context) RequestProcessor.process(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) 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) protected voidNioServerHttpRequestHandler.verboseClientServerCommunication(NioConfig cfg, io.netty.handler.codec.http.HttpHeaders httpHeaders, String httpPostRequestBody, ServiceContext context, StringBuilder sb, boolean isTraceAll) -
Uses of ServiceContext in org.summerboot.jexpress.nio.server.domain
Methods in org.summerboot.jexpress.nio.server.domain that return ServiceContextModifier and TypeMethodDescriptionstatic ServiceContextServiceContext.build(long hit) static ServiceContextServiceContext.build(io.netty.channel.ChannelHandlerContext ctx, String txId, long hit, long startTs, io.netty.handler.codec.http.HttpHeaders requestHeaders, io.netty.handler.codec.http.HttpMethod requesMethod, String requesURI, String requestBody) static ServiceContext<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.report(StringBuilder sb) 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.sessionAttribute(Object key, Object value) set or remove attribute value, or clear all attributes when both key and value are nullServiceContext.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 TypeMethodDescriptionprotected StringServiceRequest.getParam(Map<String, List<String>> pms, 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.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) static CallerBootController.login(Authenticator auth, String userId, String password, ServiceContext context) voidBootController.logout(ServiceRequest request, ServiceContext context) BootController.longin_jSecurityCheck(String userId, String password, ServiceContext context) BootController.longin_JSON(LoginVo loginVo, ServiceContext context) voidBootController.pause(boolean pause, ServiceContext context) JaxRsRequestProcessor.process(io.netty.channel.ChannelHandlerContext channelHandlerCtx, io.netty.handler.codec.http.HttpHeaders httpHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) voidWebResourceController.requestWebResource(ServiceRequest request, ServiceContext response) send web resource images, css, js, etc. to browservoidBootController.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 username, 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 username, 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)