本文整理了Java中org.glassfish.grizzly.http.server.Request.getQueryString
方法的一些代码示例,展示了Request.getQueryString
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getQueryString
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称:Request
方法名:getQueryString
暂无
代码示例来源:origin: jersey/jersey
private URI getRequestUri(final Request request) {
try {
final String serverAddress = getServerAddress(request);
String uri;
if (configReduceContextPathSlashesEnabled && containsContextPath(request)) {
uri = ContainerUtils.reduceLeadingSlashes(request.getRequestURI());
} else {
uri = request.getRequestURI();
}
final String queryString = request.getQueryString();
if (queryString != null) {
uri = uri + "?" + ContainerUtils.encodeUnsafeCharacters(queryString);
}
return new URI(serverAddress + uri);
} catch (URISyntaxException ex) {
throw new IllegalArgumentException(ex);
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
/**
* {@inheritDoc}
*/
@Override
public String getQueryString() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
return request.getQueryString();
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@Override
public String getQueryString() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
return request.getQueryString();
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@Override
public String getQueryString() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
return request.getQueryString();
}
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* Return the query string associated with this request.
*/
@Override
public String getQueryString() {
String queryString = coyoteRequest.getQueryString();
if (queryString == null || "".equals(queryString)) {
return null;
} else {
return queryString;
}
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@Override
public String getQueryString() {
if (request == null) {
throw new IllegalStateException("Null request object");
}
return request.getQueryString();
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server
@Override
StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
final String query = request.getQueryString();
if (query != null) builder.append('?').append(query);
return builder;
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
@Override
StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
final String query = request.getQueryString();
if (query != null) builder.append('?').append(query);
return builder;
}
}
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server
@Override
StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
final String query = request.getQueryString();
if (query != null) builder.append('?').append(query);
return builder;
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
@Override
StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
final String query = request.getQueryString();
if (query != null) builder.append('?').append(query);
return builder;
}
}
代码示例来源:origin: javaee/grizzly
@Override
StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
final String query = request.getQueryString();
if (query != null) builder.append('?').append(query);
return builder;
}
}
代码示例来源:origin: javaee/grizzly
@Override
StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
final String query = request.getQueryString();
if (query != null) builder.append('?').append(query);
return builder;
}
}
代码示例来源:origin: javaee/grizzly
@Override
StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
final String query = request.getQueryString();
if (query != null) builder.append('?').append(query);
return builder;
}
}
代码示例来源:origin: javaee/grizzly
private String composeReferrerHeader(final Request request) {
final StringBuilder sb = new StringBuilder(64);
final String queryString = request.getQueryString();
sb.append(request.getRequestURL());
if (queryString != null) {
sb.append('?').append(queryString);
}
return sb.toString();
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server
private String composeReferrerHeader(final Request request) {
final StringBuilder sb = new StringBuilder(64);
final String queryString = request.getQueryString();
sb.append(request.getRequestURL());
if (queryString != null) {
sb.append('?').append(queryString);
}
return sb.toString();
}
代码示例来源:origin: javaee/grizzly
private String composeReferrerHeader(final Request request) {
final StringBuilder sb = new StringBuilder(64);
final String queryString = request.getQueryString();
sb.append(request.getRequestURL());
if (queryString != null) {
sb.append('?').append(queryString);
}
return sb.toString();
}
代码示例来源:origin: javaee/grizzly
private String composeReferrerHeader(final Request request) {
final StringBuilder sb = new StringBuilder(64);
final String queryString = request.getQueryString();
sb.append(request.getRequestURL());
if (queryString != null) {
sb.append('?').append(queryString);
}
return sb.toString();
}
代码示例来源:origin: javaee/grizzly
private String composeReferrerHeader(final Request request) {
final StringBuilder sb = new StringBuilder(64);
final String queryString = request.getQueryString();
sb.append(request.getRequestURL());
if (queryString != null) {
sb.append('?').append(queryString);
}
return sb.toString();
}
代码示例来源:origin: javaee/grizzly
private String composeReferrerHeader(final Request request) {
final StringBuilder sb = new StringBuilder(64);
final String queryString = request.getQueryString();
sb.append(request.getRequestURL());
if (queryString != null) {
sb.append('?').append(queryString);
}
return sb.toString();
}
代码示例来源:origin: javaee/grizzly
private String composeReferrerHeader(final Request request) {
final StringBuilder sb = new StringBuilder(64);
final String queryString = request.getQueryString();
sb.append(request.getRequestURL());
if (queryString != null) {
sb.append('?').append(queryString);
}
return sb.toString();
}
内容来源于网络,如有侵权,请联系作者删除!