@Deprecated public class QueryArgs extends Object
| Constructor and Description |
|---|
QueryArgs()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildHTTPQuery(javax.servlet.http.HttpServletRequest request)
Deprecated.
Builds an HTTP query string for some parameters with the value
taken from the request context passed in.
|
String |
buildQuery(javax.servlet.http.HttpServletRequest request)
Deprecated.
Builds an advanced-query description string.
|
Map<String,String> |
buildQueryMap(javax.servlet.http.HttpServletRequest request)
Deprecated.
Constructs a HashMap with the keys field{1,2,3}, query{1,2,3} and
conjunction{1,2} taking the values from the passed-in argument
defaulting to "".
|
int |
getEtAl()
Deprecated.
|
int |
getPageSize()
Deprecated.
get the count of hits to return
|
String |
getQuery()
Deprecated.
retrieve the query string
|
SortOption |
getSortOption()
Deprecated.
|
String |
getSortOrder()
Deprecated.
|
int |
getStart()
Deprecated.
read the search's starting offset
|
void |
setEtAl(int etAl)
Deprecated.
set the number of metadata fields at which to truncate with "et al"
|
void |
setPageSize(int newSize)
Deprecated.
set the count of hits to return; used to implement paged searching see
the initializer for the default value
|
void |
setQuery(String newQuery)
Deprecated.
set the query string
|
void |
setSortOption(SortOption sortOption)
Deprecated.
|
void |
setSortOrder(String sortOrder)
Deprecated.
|
void |
setStart(int newStart)
Deprecated.
set the offset of the desired search results, beginning with 0 ; used to
page results (the default value is 0)
|
public int getEtAl()
public void setEtAl(int etAl)
etAl - public void setQuery(String newQuery)
newQuery - public String getQuery()
public void setStart(int newStart)
newStart - index of first desired resultpublic int getStart()
public void setPageSize(int newSize)
newSize - number of hits per pagepublic int getPageSize()
public SortOption getSortOption()
public void setSortOption(SortOption sortOption)
public String getSortOrder()
public void setSortOrder(String sortOrder)
public String buildQuery(javax.servlet.http.HttpServletRequest request)
request - the request object to take the values frompublic Map<String,String> buildQueryMap(javax.servlet.http.HttpServletRequest request)
request - the request-describing object to take the values frompublic String buildHTTPQuery(javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
Note, that the values are url-encoded using the UTF-8 encoding scheme as the corresponding W3C recommendation states.
Also note that neither leading ? (question mark) nor leading & (ampersand mark) is included. Take this into account when appending to a real URL.
request - the request object to take the values fromUnsupportedEncodingExceptionCopyright © 2014 DuraSpace. All Rights Reserved.