本文整理了Java中org.glassfish.grizzly.http.server.Request.obtainMappingData
方法的一些代码示例,展示了Request.obtainMappingData
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.obtainMappingData
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!