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 intprotected final booleanprotected final ProcessorSettingsprotected final Stringprotected final Stringprotected final Patternprotected 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)
-
Field Details
-
javaInstance
-
javaMethod
-
declaredPath
-
rolesAllowed
-
roleBased
protected final boolean roleBased -
permitAll
protected final boolean permitAll -
consumes
-
produces
-
produce_ExplicitType
-
produce_DefaultType
-
classLevelLogAnnotation
-
hasMatrixParam
protected final boolean hasMatrixParam -
hasPathParam
protected final boolean hasPathParam -
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) throws Throwable- Specified by:
processin interfaceRequestProcessor- Throws:
Throwable
-
hasMatrixPara
public boolean hasMatrixPara() -
hasPathParam
public boolean hasPathParam() -
buildServiceRequest
-