Class ServiceRequest

java.lang.Object
org.summerboot.jexpress.nio.server.domain.ServiceRequest

public class ServiceRequest extends Object
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

    • channelHandlerCtx

      protected final io.netty.channel.ChannelHandlerContext channelHandlerCtx
    • httpHeaders

      protected final io.netty.handler.codec.http.HttpHeaders httpHeaders
    • httpRequestPath

      protected final String httpRequestPath
    • queryParams

      protected final Map<String,List<String>> queryParams
    • httpPostRequestBody

      protected final String httpPostRequestBody
    • pathParams

      protected Map<String,String> pathParams
    • matrixParams

      protected Map<String,String> matrixParams
    • formParams

      protected Map<String,String> formParams
  • Constructor Details

    • ServiceRequest

      public ServiceRequest(io.netty.channel.ChannelHandlerContext channelHandlerCtx, io.netty.handler.codec.http.HttpHeaders httpHeaders, String httpRequestPath, Map<String,List<String>> queryParams, String httpPostRequestBody)
  • Method Details

    • getChannelHandlerCtx

      public io.netty.channel.ChannelHandlerContext getChannelHandlerCtx()
    • getHttpHeaders

      public io.netty.handler.codec.http.HttpHeaders getHttpHeaders()
    • getHttpRequestPath

      public String getHttpRequestPath()
    • getHttpPostRequestBody

      public String getHttpPostRequestBody()
    • addPathParam

      public void addPathParam(String pathParamName, String value)
    • getPathParam

      public String getPathParam(String key)
    • addMatrixParam

      public void addMatrixParam(String matrixParamName, String value)
    • getMatrixParam

      public String getMatrixParam(String key)
    • getHeaderParam

      public String getHeaderParam(String key)
    • getQueryParams

      public Map<String,List<String>> getQueryParams()
    • getQueryParam

      public String getQueryParam(String key)
    • getQueryParam

      public String getQueryParam(String key, ServiceContext context, int errorCode)
    • getFormParam

      public String getFormParam(String key)
    • getParam

      protected String getParam(Map<String,List<String>> pms, String key, ServiceContext context, int errorCode)