Package org.intermine.client.services
Class TemplateService.TemplateRequest
- java.lang.Object
-
- org.intermine.client.core.RequestImpl
-
- org.intermine.client.services.TemplateService.TemplateRequest
-
- All Implemented Interfaces:
Request
- Enclosing class:
- TemplateService
protected static class TemplateService.TemplateRequest extends RequestImpl
A subclass of RequestImpl relevant to template queries.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.intermine.client.core.Request
Request.RequestType
-
-
Field Summary
-
Fields inherited from class org.intermine.client.core.RequestImpl
FORMAT_PARAMETER_COUNT, FORMAT_PARAMETER_JSON_OBJ, FORMAT_PARAMETER_JSON_ROWS, FORMAT_PARAMETER_XML
-
-
Constructor Summary
Constructors Constructor Description TemplateRequest(Request.RequestType type, java.lang.String serviceUrl, ContentType contentType)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setName(java.lang.String xml)
Sets the name of the template to be used.void
setTemplateParameters(java.util.List<TemplateParameter> parameters)
Set some template parameters.-
Methods inherited from class org.intermine.client.core.RequestImpl
addParameter, getContentType, getEncodedUrl, getHeader, getHeaders, getParameter, getParameterMap, getParameterNames, getParameterValues, getServiceUrl, getType, getUnencodedUrl, setAuthToken, setContentType, setCountFormat, setFormat, setHeader, setJSONFormat, setJSONRowsFormat, setMaxCount, setPage, setParameter, setServiceUrl, setStart, setType, setUrl, setXMLFormat, toString
-
-
-
-
Constructor Detail
-
TemplateRequest
public TemplateRequest(Request.RequestType type, java.lang.String serviceUrl, ContentType contentType)
Constructor.- Parameters:
type
- GET or POSTserviceUrl
- the URL of the service, not including parameterscontentType
- a ContentType object
-
-
Method Detail
-
setName
public void setName(java.lang.String xml)
Sets the name of the template to be used.- Parameters:
xml
- template name
-
setTemplateParameters
public void setTemplateParameters(java.util.List<TemplateParameter> parameters)
Set some template parameters.- Parameters:
parameters
- a List of TemplateParameter objects
-
-