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(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, String logContent, Throwable ioEx) protected abstract voidNioServerHttpRequestHandler.afterLogging(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, String logContent, Throwable ioEx) protected voidBootHttpRequestHandler.afterService(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) protected abstract CallerBootHttpFileUploadHandler.authenticate(io.netty.handler.codec.http.HttpHeaders httpHeaders, ServiceContext context) protected abstract 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 contextprotected booleanDefaultHttpRequestHandler.authenticationCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) booleanRequestProcessor.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 voidBootHttpRequestHandler.nak(ServiceContext context, io.netty.handler.codec.http.HttpResponseStatus httpResponseStatus, int appErrorCode, String errorMessage) protected voidBootHttpRequestHandler.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 voidBootHttpRequestHandler.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 notprotected voidBootHttpRequestHandler.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) protected voidBootHttpRequestHandler.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.protected voidBootHttpRequestHandler.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.protected voidBootHttpRequestHandler.onInterruptedException(InterruptedException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) protected voidBootHttpRequestHandler.onIOException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) protected voidBootHttpRequestHandler.onNamingException(NamingException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) protected voidBootHttpRequestHandler.onPersistenceException(jakarta.persistence.PersistenceException ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) protected voidBootHttpRequestHandler.onRejectedExecutionException(Throwable ex, io.netty.handler.codec.http.HttpMethod httptMethod, String httpRequestPath, ServiceContext context) protected voidBootHttpRequestHandler.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) protected abstract booleanBootHttpRequestHandler.preProcess(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) do any validation checks before processingprotected booleanDefaultHttpRequestHandler.preProcess(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, 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) protected voidBootHttpRequestHandler.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 voidNioServerHttpRequestHandler.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) ServiceContext.errors(Collection<Err> es) ServiceContext.level(org.apache.logging.log4j.Level level) ServiceContext.privacyReqContent(boolean enabled) ServiceContext.privacyReqHeader(boolean enabled) ServiceContext.privacyRespContent(boolean enabled) ServiceContext.privacyRespHeader(boolean enabled) ServiceContext.reportMemo(StringBuilder sb) ServiceContext.reportPOI(StringBuilder sb) ServiceContext.reportPOI(NioConfig cfg, StringBuilder sb) ServiceContext.reset()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) voidBootController.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) 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 TypeMethodDescriptionAuthenticator.authenticate(String uid, String pwd, int validForMinutes, ServiceContext context) Success HTTP Status: 201 CreatedBootAuthenticator.authenticate(String uid, String pwd, 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)