本文整理了Java中org.glassfish.grizzly.http.server.HttpHandlerRegistration.getContextPath()
方法的一些代码示例,展示了HttpHandlerRegistration.getContextPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpHandlerRegistration.getContextPath()
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.HttpHandlerRegistration
类名称:HttpHandlerRegistration
方法名:getContextPath
暂无
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server
final String cOntextPath= regs[i].getContextPath();
final String urlPattern = regs[i].getUrlPattern();
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
final String cOntextPath= regs[i].getContextPath();
final String urlPattern = regs[i].getUrlPattern();
代码示例来源:origin: javaee/grizzly
final String cOntextPath= regs[i].getContextPath();
final String urlPattern = regs[i].getUrlPattern();
代码示例来源:origin: javaee/grizzly
final String cOntextPath= regs[i].getContextPath();
final String urlPattern = regs[i].getUrlPattern();
代码示例来源:origin: javaee/grizzly
final String cOntextPath= regs[i].getContextPath();
final String urlPattern = regs[i].getUrlPattern();
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server
final String cOntextPath= regs[i].getContextPath();
final String urlPattern = regs[i].getUrlPattern();
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
final String cOntextPath= regs[i].getContextPath();
final String urlPattern = regs[i].getUrlPattern();
代码示例来源:origin: javaee/grizzly
final String cOntextPath= regs[i].getContextPath();
final String urlPattern = regs[i].getUrlPattern();
代码示例来源:origin: javaee/grizzly
final String cOntextPath= regs[i].getContextPath();
final String urlPattern = regs[i].getUrlPattern();
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: javaee/grizzly
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: javaee/grizzly
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: javaee/grizzly
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: javaee/grizzly
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: javaee/grizzly
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: javaee/grizzly
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: javaee/grizzly
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
/**
* Create a registration from the mapping {@link String}.
* The part of the mapping before the second slash '/' occurrence will
* be treated as context-path and the remainder will be treated as
* a url-pattern.
* For example:
* 1) "" will be treated as context-path("") and url-pattern("");
* 2) "/" will be treated as context-path("") and url-pattern("/");
* 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c");
* 4) "/*" will be treated as context-path("") and url-pattern("/*")
* 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")
*
* @param mapping the {@link String}
* @return {@link HttpHandlerRegistration}
*/
public static HttpHandlerRegistration fromString(final String mapping) {
if (mapping == null) {
return ROOT;
}
final String cOntextPath= getContextPath(mapping);
return new HttpHandlerRegistration(contextPath,
getWrapperPath(contextPath, mapping));
}