org.simpleframework.http.Address.getQuery()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(143)

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

Address.getQuery介绍

[英]This is used to retrieve the query of this URI. The query part in the URI is an optional part. This will return the value of the query part. If there is no query part then this will return an empty Query object. The query is an optional member of a URI and comes after the path part, it is preceded by a question mark, ? character. For example the following URI contains query for its query part, http://host:port/path?query.

This returns a org.simpleframework.http.Query object that can be used to interact directly with the query values. The Query object is a read-only interface to the query parameters, and so will not affect the URI.
[中]

代码示例

代码示例来源:origin: org.simpleframework/simple-http

/**
* This method is used to acquire the query part from the
* HTTP request URI target. This will return only the values
* that have been extracted from the request URI target.
* 
* @return the query associated with the HTTP target URI
*/   
public Query getQuery() {
 return getAddress().getQuery();
}

代码示例来源:origin: org.simpleframework/simple

/**
* This method is used to acquire the query part from the
* HTTP request URI target. This will return only the values
* that have been extracted from the request URI target.
* 
* @return the query associated with the HTTP target URI
*/   
public Query getQuery() {
 return getAddress().getQuery();
}

代码示例来源:origin: ngallagher/simpleframework

/**
* This method is used to acquire the query part from the
* HTTP request URI target. This will return only the values
* that have been extracted from the request URI target.
* 
* @return the query associated with the HTTP target URI
*/   
public Query getQuery() {
 return getAddress().getQuery();
}

相关文章