Interface RequestProcessor
- All Known Implementing Classes:
JaxRsRequestProcessor
public interface RequestProcessor
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
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) <T extends Annotation>
TgetAnnotation(Class<T> annotationClass) booleanbooleanprocess(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context)
-
Method Details
-
getAnnotation
-
getProcessorSettings
ProcessorSettings getProcessorSettings() -
getDeclaredPath
String getDeclaredPath() -
isRoleBased
boolean isRoleBased() -
matches
-
authorizationCheck
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- Throws:
Throwable
-
process
Object process(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, Map<String, List<String>> queryParams, String httpPostRequestBody, ServiceContext context) throws Throwable- Throws:
Throwable
-