org.glassfish.grizzly.http.server.Request.obtainMappingData()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.glassfish.grizzly.http.server.Request.obtainMappingData方法的一些代码示例,展示了Request.obtainMappingData的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.obtainMappingData方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称:Request
方法名:obtainMappingData

Request.obtainMappingData介绍

暂无

代码示例

代码示例来源:origin: javaee/grizzly

private Mapping(final Request request) {
  final MappingData data = request.obtainMappingData();
  if (data == null) {
    throw new NullPointerException("No MappingData available.");

代码示例来源:origin: javaee/grizzly

private Mapping(final Request request) {
  final MappingData data = request.obtainMappingData();
  if (data == null) {
    throw new NullPointerException("No MappingData available.");

代码示例来源:origin: javaee/grizzly

private Mapping(final Request request) {
  final MappingData data = request.obtainMappingData();
  if (data == null) {
    throw new NullPointerException("No MappingData available.");

代码示例来源:origin: javaee/grizzly

private Mapping(final Request request) {
  final MappingData data = request.obtainMappingData();
  if (data == null) {
    throw new NullPointerException("No MappingData available.");

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

private Mapping(final Request request) {
  final MappingData data = request.obtainMappingData();
  if (data == null) {
    throw new NullPointerException("No MappingData available.");

代码示例来源:origin: javaee/grizzly

private Mapping(final Request request) {
  final MappingData data = request.obtainMappingData();
  if (data == null) {
    throw new NullPointerException("No MappingData available.");

代码示例来源:origin: javaee/grizzly

private void updateMappingInfo(final Request request,
      final String alias, final String originalAlias) {
    
    final MappingData mappingData = request.obtainMappingData();
    mappingData.contextPath.setString("");
    if (alias.equals("/")) {
      mappingData.wrapperPath.setString("");
    } else {
      mappingData.wrapperPath.setString(alias);
    }
    
    if (alias.length() != originalAlias.length()) {
      String pathInfo = originalAlias.substring(alias.length());
      if (pathInfo.charAt(0) != '/') {
        pathInfo = "/" + pathInfo;
      }
      
      mappingData.pathInfo.setString(pathInfo);
    }
    
    updatePaths(request, mappingData);
  }
}

代码示例来源:origin: javaee/grizzly

private void updateMappingInfo(final Request request,
      final String alias, final String originalAlias) {
    
    final MappingData mappingData = request.obtainMappingData();
    mappingData.contextPath.setString("");
    if (alias.equals("/")) {
      mappingData.wrapperPath.setString("");
    } else {
      mappingData.wrapperPath.setString(alias);
    }
    
    if (alias.length() != originalAlias.length()) {
      String pathInfo = originalAlias.substring(alias.length());
      if (pathInfo.charAt(0) != '/') {
        pathInfo = "/" + pathInfo;
      }
      
      mappingData.pathInfo.setString(pathInfo);
    }
    
    updatePaths(request, mappingData);
  }
}

代码示例来源:origin: org.activecomponents.jadex/jadex-platform-extension-webservice-desktop-grizzly

res.initialize(response, req);
MappingData data = request.obtainMappingData();

代码示例来源:origin: javaee/grizzly

protected void setPathData(final Request from,
              final HttpServletRequestImpl to) {
  final MappingData data = from.obtainMappingData();
  to.setServletPath(data.wrapperPath.toString());
  to.setPathInfo(data.pathInfo.toString());
  to.setContextPath(data.contextPath.toString());
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

protected void setPathData(final Request from,
              final HttpServletRequestImpl to) {
  final MappingData data = from.obtainMappingData();
  to.setServletPath(data.wrapperPath.toString());
  to.setPathInfo(data.pathInfo.toString());
  to.setContextPath(data.contextPath.toString());
}

代码示例来源:origin: javaee/grizzly

protected void setPathData(final Request from,
              final HttpServletRequestImpl to) {
  final MappingData data = from.obtainMappingData();
  to.setServletPath(data.wrapperPath.toString());
  to.setPathInfo(data.pathInfo.toString());
  to.setContextPath(data.contextPath.toString());
}

代码示例来源:origin: javaee/grizzly

protected void setPathData(final Request from,
              final HttpServletRequestImpl to) {
  final MappingData data = from.obtainMappingData();
  to.setServletPath(data.wrapperPath.toString());
  to.setPathInfo(data.pathInfo.toString());
  to.setContextPath(data.contextPath.toString());
}

代码示例来源:origin: javaee/grizzly

protected void setPathData(final Request from,
              final HttpServletRequestImpl to) {
  final MappingData data = from.obtainMappingData();
  to.setServletPath(data.wrapperPath.toString());
  to.setPathInfo(data.pathInfo.toString());
  to.setContextPath(data.contextPath.toString());
}

代码示例来源:origin: javaee/grizzly

protected void setPathData(final Request from,
              final HttpServletRequestImpl to) {
  final MappingData data = from.obtainMappingData();
  to.setServletPath(data.wrapperPath.toString());
  to.setPathInfo(data.pathInfo.toString());
  to.setContextPath(data.contextPath.toString());
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

isAllowEncodedSlash());
final MappingData mappingData = request.obtainMappingData();

代码示例来源:origin: javaee/grizzly

isAllowEncodedSlash());
final MappingData mappingData = request.obtainMappingData();

代码示例来源:origin: javaee/grizzly

isAllowEncodedSlash());
final MappingData mappingData = request.obtainMappingData();

代码示例来源:origin: javaee/grizzly

isAllowEncodedSlash());
final MappingData mappingData = request.obtainMappingData();

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

isAllowEncodedSlash());
final MappingData mappingData = request.obtainMappingData();

相关文章

Request类方法