Class JaxRsRequestProcessor
java.lang.Object
org.summerboot.jexpress.nio.server.ws.rs.JaxRsRequestProcessor
- All Implemented Interfaces:
RequestProcessor
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Logprotected final Stringprotected final booleanprotected final booleanprotected final Objectprotected final Methodprotected final List<org.summerboot.jexpress.nio.server.ws.rs.MetaMatrixParam>protected final List<org.summerboot.jexpress.nio.server.ws.rs.JaxRsRequestParameter>protected final intprotected final booleanprotected final ProcessorSettingsprotected final Stringprotected final Stringprotected final Patternprotected final booleanprotected final booleanprotected final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthorizationCheck(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) buildServiceRequest(io.netty.channel.ChannelHandlerContext channelHandlerCtx, io.netty.handler.codec.http.HttpHeaders httpHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody) <T extends Annotation>
TgetAnnotation(Class<T> annotationClass) booleanbooleanbooleanbooleanprocess(io.netty.channel.ChannelHandlerContext channelHandlerCtx, io.netty.handler.codec.http.HttpHeaders httpHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) protected voidupdateLogSettings(Log log)
-
Field Details
-
javaInstance
-
javaMethod
-
declaredPath
-
rolesAllowed
-
roleBased
protected final boolean roleBased -
permitAll
protected final boolean permitAll -
consumes
-
produces
-
produce_ExplicitType
-
produce_DefaultType
-
classLevelLogAnnotation
-
rejectWhenPaused
protected final boolean rejectWhenPaused -
rejectWhenHealthCheckFailed
protected final boolean rejectWhenHealthCheckFailed -
parameterList
-
hasMatrixParam
protected final boolean hasMatrixParam -
hasPathParam
protected final boolean hasPathParam -
pathParamMap
-
metaMatrixParamList
-
regexPattern
-
parameterSize
protected final int parameterSize -
SupportedProducesWithReturnType
-
processorSettings
-
-
Constructor Details
-
JaxRsRequestProcessor
-
-
Method Details
-
updateLogSettings
-
getProcessorSettings
- Specified by:
getProcessorSettingsin interfaceRequestProcessor
-
getAnnotation
- Specified by:
getAnnotationin interfaceRequestProcessor
-
getDeclaredPath
- Specified by:
getDeclaredPathin interfaceRequestProcessor
-
isRoleBased
public boolean isRoleBased()- Specified by:
isRoleBasedin interfaceRequestProcessor
-
matches
- Specified by:
matchesin interfaceRequestProcessor
-
authorizationCheck
public boolean 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) throws Throwable- Specified by:
authorizationCheckin interfaceRequestProcessor- Throws:
Throwable
-
process
public Object process(io.netty.channel.ChannelHandlerContext channelHandlerCtx, io.netty.handler.codec.http.HttpHeaders httpHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) throws Throwable- Specified by:
processin interfaceRequestProcessor- Throws:
Throwable
-
hasMatrixPara
public boolean hasMatrixPara() -
hasPathParam
public boolean hasPathParam() -
buildServiceRequest
-