public class CoserRequestBuilder<R extends CoserRequest> extends Object
toRequest()
method.
Example:
MapRequest r = CoserRequestBuilder. newBuilder(locale,MapRequest.class). addFacade(facade). addZone(zone). toRequest();Created on 3/7/14.
Modifier and Type | Field and Description |
---|---|
protected Locale |
locale
Locale to inject in request.
|
protected static String |
PARAMETER_COMMUNITY_INDICATOR_LIST |
protected static String |
PARAMETER_EXTRACT_TYPE_LIST |
protected static String |
PARAMETER_FACADE |
protected static String |
PARAMETER_INDICATOR |
protected static String |
PARAMETER_POPULATION_INDICATOR_LIST |
protected static String |
PARAMETER_REPOSITORY_TYPE |
protected static String |
PARAMETER_RESULT_TYPE |
protected static String |
PARAMETER_SPECIES |
protected static String |
PARAMETER_SPECIES_LIST |
protected static String |
PARAMETER_TARGET_DIRECTORY |
protected static String |
PARAMETER_ZONE |
protected static String |
PARAMETER_ZONE_LIST |
protected Map<String,Object> |
parameters
Holder of parameters to inject in request.
|
protected Class<R> |
requestType
Type of request to build.
|
Modifier | Constructor and Description |
---|---|
protected |
CoserRequestBuilder(Locale locale,
Class<R> requestType) |
protected static final String PARAMETER_RESULT_TYPE
protected static final String PARAMETER_REPOSITORY_TYPE
protected static final String PARAMETER_INDICATOR
protected static final String PARAMETER_ZONE_LIST
protected static final String PARAMETER_SPECIES
protected static final String PARAMETER_ZONE
protected static final String PARAMETER_FACADE
protected static final String PARAMETER_SPECIES_LIST
protected static final String PARAMETER_POPULATION_INDICATOR_LIST
protected static final String PARAMETER_COMMUNITY_INDICATOR_LIST
protected static final String PARAMETER_EXTRACT_TYPE_LIST
protected static final String PARAMETER_TARGET_DIRECTORY
protected final Locale locale
protected final Class<R extends CoserRequest> requestType
public static <R extends CoserRequest> CoserRequestBuilder<R> newBuilder(Locale locale, Class<R> requestType)
public CoserRequestBuilder<R> addFacade(String facade)
public CoserRequestBuilder<R> addZone(String zone)
public CoserRequestBuilder<R> addSpecies(String species)
public CoserRequestBuilder<R> addIndicator(String indicator)
public CoserRequestBuilder<R> addExtractTypeList(List<DataType> extractTypeList)
public CoserRequestBuilder<R> addZoneList(List<String> zoneList)
public CoserRequestBuilder<R> addSpeciesList(List<String> speciesList)
public CoserRequestBuilder<R> addPopulationIndicatorList(List<String> populationIndicatorList)
public CoserRequestBuilder<R> addCommunityIndicatorList(List<String> communityIndicatorList)
public CoserRequestBuilder<R> addRepositoryType(String repositoryType)
public CoserRequestBuilder<R> addResultType(ResultType resultType)
public CoserRequestBuilder<R> addTargetDirectory(File targetDirectory)
public R toRequest()
protected void flushCopyRepositoryRequest(R request)
protected void flushExtractRawDataAndResultsRequest(R request)
protected void flushCoserRequestFacadeAware(R request)
protected void flushCoserRequestZoneAware(R request)
protected void flushCoserRequestSpeciesAware(R request)
protected void flushCoserRequestZoneListAware(R request)
protected void flushCoserRequestExtractTypeListAware(R request)
protected void flushCoserRequestIndicatorAware(R request)
protected void flushCoserRequestRepositoryTypeAware(R request)
protected void flushCoserRequestRepositoryResultTypeAware(R request)
protected <O> O getParam(String parameterName)
Copyright © 2010–2015 Ifremer. All rights reserved.