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 Stringprotected final Objectprotected final Methodprotected 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) booleanbooleanbooleanbooleanvoidprocess(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)
-
Field Details
-
javaInstance
-
javaMethod
-
declaredPath
-
rolesAllowed
-
roleBased
protected final boolean roleBased -
permitAll
protected final boolean permitAll -
consumes
-
produces
-
produce_ExplicitType
-
produce_DefaultType
-
usingMatrixParam
protected final boolean usingMatrixParam -
usingPathParam
protected final boolean usingPathParam -
regexPattern
-
parameterSize
protected final int parameterSize -
SupportedProducesWithReturnType
-
processorSettings
-
-
Constructor Details
-
JaxRsRequestProcessor
-
-
Method Details
-
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 void 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) throws Throwable- Specified by:
processin interfaceRequestProcessor- Throws:
Throwable
-
isUsingMatrixPara
public boolean isUsingMatrixPara() -
isUsingPathParam
public boolean isUsingPathParam() -
buildServiceRequest
-