public class SearchViewRequestParametersBean extends Object implements SearchViewRequestParameters
Modifier and Type | Field and Description |
---|---|
private int |
hitsPerPage |
private int |
pageNumber |
private javax.servlet.ServletRequest |
servletRequest |
private int |
totalHitCount |
PARAMETER_CREATOR, PARAMETER_HITS_PER_PAGE, PARAMETER_ID, PARAMETER_PAGE, PARAMETER_QUERY, PARAMETER_SOURCE, PARAMETER_TITLE, PARAMETER_TOTAL_HIT_COUNT, PARAMETER_TYPE
Constructor and Description |
---|
SearchViewRequestParametersBean(javax.servlet.ServletRequest request)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getCreator()
This method gets the
creator from the request
parameters. |
int |
getHitsPerPage()
This method gets the number of
hits
per page from the request parameters. |
String |
getId()
This method gets the
ID from the request
parameters. |
int |
getPageNumber()
This method gets the
page-index from
the request parameters. |
private String |
getParameter(String name)
|
private int |
getParameterAsInt(String name,
int defaultValue,
int minimum,
int maximum)
|
String |
getQuery()
This method gets the
query from the request parameters. |
javax.servlet.ServletRequest |
getServletRequest()
This method gets the
ServletRequest . |
String |
getSource()
This method gets the
source from the request
parameters. |
String |
getTitle()
This method gets the
title from the request
parameters. |
int |
getTotalHitCount()
This method gets the
total number
of hits from the request parameters. |
String |
getType()
This method gets the
type from the request
parameters. |
private final javax.servlet.ServletRequest servletRequest
getServletRequest()
private int pageNumber
getPageNumber()
private int hitsPerPage
getHitsPerPage()
private int totalHitCount
getTotalHitCount()
public SearchViewRequestParametersBean(javax.servlet.ServletRequest request)
request
- is the servlet request.private String getParameter(String name)
name
- is the name of the requested parameter.trimmed
string. If the parameter is NOT set, the empty
string is returned.private int getParameterAsInt(String name, int defaultValue, int minimum, int maximum)
name
- is the name of the requested parameter.defaultValue
- is returned if the parameter is NOT set or invalid.minimum
- is the minimum allowed value.maximum
- is the maximum allowed value.defaultValue
is returned.public javax.servlet.ServletRequest getServletRequest()
ServletRequest
. public int getPageNumber()
page-index
from
the request parameters.getPageNumber
in interface SearchViewRequestParameters
0
if NOT set in request.public int getHitsPerPage()
hits
per page
from the request parameters.getHitsPerPage
in interface SearchViewRequestParameters
SearchResultPage.DEFAULT_HITS_PER_PAGE
if NOT set in
request.public int getTotalHitCount()
total number
of hits
from the request parameters.getTotalHitCount
in interface SearchViewRequestParameters
-1
if NOT set in request.public String getQuery()
query
from the request parameters.getQuery
in interface SearchViewRequestParameters
public String getSource()
source
from the request
parameters.getSource
in interface SearchViewRequestParameters
public String getCreator()
creator
from the request
parameters.getCreator
in interface SearchViewRequestParameters
public String getTitle()
title
from the request
parameters.getTitle
in interface SearchViewRequestParameters
public String getType()
type
from the request
parameters.getType
in interface SearchViewRequestParameters
public String getId()
ID
from the request
parameters.getId
in interface SearchViewRequestParameters
Copyright © 2001–2016 mmm-Team. All rights reserved.