public class ContextQueryUpdater extends Object implements ViewSetter
Modifier and Type | Field and Description |
---|---|
protected APIQuery |
aq |
protected int |
endpointKind |
static int |
ItemEndpoint |
static int |
ListEndpoint |
protected String |
requestedFormat |
Constructor and Description |
---|
ContextQueryUpdater(int endpointKind,
Bindings context,
NamedViews nv,
ShortnameService sns,
APIQuery args)
Initialise this ContextQueryUpdater.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilterFromQuery(Param param,
String raw_val)
General interface for extending the query with a specified parameter.
|
void |
handleReservedParameters(GEOLocation geo,
ViewSetter vs,
String p,
String val)
handle the reserved, ie, _wossname, parameters.
|
void |
setFormat(String format) |
void |
setViewByName(String viewName) |
void |
setViewByProperties(String val) |
void |
setViewByTemplate(String template) |
View |
updateQueryAndConstructView(List<PendingParameterValue> deferredFilters)
Apply the context updates to the query, and answer the view
specified.
|
protected final APIQuery aq
protected final int endpointKind
protected String requestedFormat
public static final int ItemEndpoint
public static final int ListEndpoint
public ContextQueryUpdater(int endpointKind, Bindings context, NamedViews nv, ShortnameService sns, APIQuery args)
endpointKind
- context
- the context providing the parameters and their valuesnv
- a mapping from names to views, with a defaultsns
- the ShortnameService to use to translate to URIsargs
- place to build the query argumentspublic View updateQueryAndConstructView(List<PendingParameterValue> deferredFilters)
public void handleReservedParameters(GEOLocation geo, ViewSetter vs, String p, String val)
geo
, the vs
, or this query
object. p
is the reserved-property name, val
is the value string.public void addFilterFromQuery(Param param, String raw_val)
param
- raw_val
- public void setFormat(String format)
setFormat
in interface ViewSetter
public void setViewByTemplate(String template)
public void setViewByName(String viewName)
setViewByName
in interface ViewSetter
public void setViewByProperties(String val)
setViewByProperties
in interface ViewSetter
Copyright © 2014. All Rights Reserved.