本文整理了Java中org.glassfish.grizzly.http.server.Request.getAttributeNames
方法的一些代码示例,展示了Request.getAttributeNames
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getAttributeNames
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称:Request
方法名:getAttributeNames
[英]Return the names of all request attributes for this Request, or an empty Set if there are none.
[中]返回此请求的所有请求属性的名称,如果没有,则返回空集。
代码示例来源:origin: jersey/jersey
@Override
public Collection<String> getPropertyNames() {
return request.getAttributeNames();
}
代码示例来源:origin: org.glassfish.jersey.containers/jersey-container-grizzly2-http
@Override
public Collection<String> getPropertyNames() {
return request.getAttributeNames();
}
代码示例来源:origin: javaee/grizzly
@Override
public Enumeration<String> run() {
return new Enumerator<>(request.getAttributeNames());
}
}
代码示例来源:origin: javaee/grizzly
@Override
public Enumeration<String> run() {
return new Enumerator<>(request.getAttributeNames());
}
}
代码示例来源:origin: javaee/grizzly
@Override
public Enumeration<String> run() {
return new Enumerator<>(request.getAttributeNames());
}
}
代码示例来源:origin: javaee/grizzly
@Override
public Enumeration<String> run() {
return new Enumerator<>(request.getAttributeNames());
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
@Override
public Enumeration<String> run() {
return new Enumerator<>(request.getAttributeNames());
}
}
代码示例来源:origin: javaee/grizzly
@Override
public Enumeration<String> run() {
return new Enumerator<>(request.getAttributeNames());
}
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public Enumeration<String> getAttributeNames() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
if (System.getSecurityManager() != null){
return AccessController.doPrivileged(
new GetAttributePrivilegedAction());
} else {
return new Enumerator(request.getAttributeNames());
}
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public Enumeration<String> getAttributeNames() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
if (System.getSecurityManager() != null){
return AccessController.doPrivileged(
new GetAttributePrivilegedAction());
} else {
return new Enumerator(request.getAttributeNames());
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public Enumeration<String> getAttributeNames() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
if (System.getSecurityManager() != null){
return AccessController.doPrivileged(
new GetAttributePrivilegedAction());
} else {
return new Enumerator(request.getAttributeNames());
}
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public Enumeration<String> getAttributeNames() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
if (System.getSecurityManager() != null){
return AccessController.doPrivileged(
new GetAttributePrivilegedAction());
} else {
return new Enumerator(request.getAttributeNames());
}
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public Enumeration<String> getAttributeNames() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
if (System.getSecurityManager() != null){
return AccessController.doPrivileged(
new GetAttributePrivilegedAction());
} else {
return new Enumerator(request.getAttributeNames());
}
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public Enumeration<String> getAttributeNames() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
if (System.getSecurityManager() != null){
return AccessController.doPrivileged(
new GetAttributePrivilegedAction());
} else {
return new Enumerator(request.getAttributeNames());
}
}
代码示例来源:origin: com.bitplan.rest/com.bitplan.simplerest
/**
* show Debug Information for the given request
*
* @param req
*/
public void showDebug(Request req) {
for (String attrName : req.getAttributeNames()) {
System.out.println("req attr: " + attrName + "="
+ req.getAttribute(attrName));
}
Object certobj = req.getAttribute("javax.servlet.request.X509Certificate");
if (certobj != null) {
System.out.println("certificate " + certobj.getClass().getName()
+ " found");
if (certobj instanceof java.security.cert.X509Certificate[]) {
java.security.cert.X509Certificate[] certs = (X509Certificate[]) certobj;
for (java.security.cert.X509Certificate cert : certs) {
System.out.println("issuer DN:" + cert.getIssuerDN().getName());
System.out.println("subject DN: " + cert.getSubjectDN().getName());
}
}
}
for (String headerName : req.getHeaderNames()) {
System.out.println("req header: " + headerName + "="
+ req.getHeader(headerName));
}
}
内容来源于网络,如有侵权,请联系作者删除!