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 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) voidBootNioLifecycleHandler.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) voidNioLifecycleListener.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) voidBootNioLifecycleHandler.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) voidNioLifecycleListener.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) 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) BootNioLifecycleHandler.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) NioLifecycleListener.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) booleanBootNioLifecycleHandler.beofreProcess(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) booleanNioLifecycleListener.beofreProcess(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) step0 - do any validation checks before processingprotected voidBootNioExceptionHandler.nak(ServiceContext context, io.netty.handler.codec.http.HttpResponseStatus httpResponseStatus, int appErrorCode, String errorMessage) protected voidBootNioExceptionHandler.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 voidBootNioExceptionHandler.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 notvoidBootNioExceptionHandler.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) voidNioExceptionListener.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) voidBootNioExceptionHandler.onHttpConnectTimeoutException(HttpConnectTimeoutException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidNioExceptionListener.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.voidBootNioExceptionHandler.onHttpTimeoutException(HttpTimeoutException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidNioExceptionListener.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.voidBootNioExceptionHandler.onInterruptedException(InterruptedException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidNioExceptionListener.onInterruptedException(InterruptedException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootNioExceptionHandler.onIOException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidNioExceptionListener.onIOException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootNioExceptionHandler.onNamingException(NamingException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidNioExceptionListener.onNamingException(NamingException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootNioExceptionHandler.onPersistenceException(jakarta.persistence.PersistenceException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidNioExceptionListener.onPersistenceException(jakarta.persistence.PersistenceException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootNioExceptionHandler.onRejectedExecutionException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidNioExceptionListener.onRejectedExecutionException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) voidBootNioExceptionHandler.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) voidNioExceptionListener.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 BAD_REQUEST) 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 response) 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.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) ServiceContext.timestampPOI(String marker) 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 badRequestErrorCode) 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 CallerAuthenticatorMockImpl.authenticate(String uid, String password, Long metaData, AuthenticatorListener listener, ServiceContext context) protected abstract CallerBootAuthenticator.authenticate(String usename, String password, T metaData, AuthenticatorListener listener, ServiceContext context) booleanAuthenticator.customizedAuthorizationCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) Extra authorization checks before processingbooleanAuthenticatorMockImpl.customizedAuthorizationCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) Authenticator.login(String username, String pwd, Object metaData, int validForMinutes, ServiceContext context) Success HTTP Status: 201 CreatedBootAuthenticator.login(String uid, String pwd, Object metaData, int validForMinutes, ServiceContext context) voidAuthenticator.logout(io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, AuthTokenCache cache, ServiceContext context) Success HTTP Status: 204 No ContentvoidAuthenticator.logout(String authToken, AuthTokenCache cache, ServiceContext context) Success HTTP Status: 204 No ContentvoidBootAuthenticator.logout(io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, AuthTokenCache cache, ServiceContext context) voidBootAuthenticator.logout(String authToken, AuthTokenCache cache, ServiceContext context) <T extends Caller>
TAuthenticator.verifyBearerToken(io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, AuthTokenCache cache, Integer errorCode, ServiceContext context) Success HTTP Status: 200 OKBootAuthenticator.verifyBearerToken(io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, AuthTokenCache cache, Integer errorCode, ServiceContext context) <T extends Caller>
TAuthenticator.verifyToken(String authToken, AuthTokenCache cache, Integer errorCode, ServiceContext context) BootAuthenticator.verifyToken(String authToken, AuthTokenCache cache, Integer errorCode, ServiceContext context)