@Deprecated
public class QueryArgs
extends java.lang.Object
| Constructor and Description |
|---|
QueryArgs()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
java.lang.String |
buildQuery(javax.servlet.http.HttpServletRequest request)
Deprecated.
Builds an advanced-query description string.
|
java.util.Map<java.lang.String,java.lang.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
|
java.lang.String |
getQuery()
Deprecated.
retrieve the query string
|
SortOption |
getSortOption()
Deprecated.
|
java.lang.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(java.lang.String newQuery)
Deprecated.
set the query string
|
void |
setSortOption(SortOption sortOption)
Deprecated.
|
void |
setSortOrder(java.lang.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(java.lang.String newQuery)
newQuery - public java.lang.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 java.lang.String getSortOrder()
public void setSortOrder(java.lang.String sortOrder)
public java.lang.String buildQuery(javax.servlet.http.HttpServletRequest request)
request - the request object to take the values frompublic java.util.Map<java.lang.String,java.lang.String> buildQueryMap(javax.servlet.http.HttpServletRequest request)
request - the request-describing object to take the values frompublic java.lang.String buildHTTPQuery(javax.servlet.http.HttpServletRequest request)
throws java.io.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 fromjava.io.UnsupportedEncodingExceptionCopyright © 2018 DuraSpace. All Rights Reserved.