Example #1
0
 @Setting(REST_SML_CAPABILITY_FEATUREOFINTERESTTYPE_NAME)
 public void setSmlCapabilityFeatureofinteresttypeName(
     final String smlCapabilityFeatureofinteresttypeName) {
   Validation.notNullOrEmpty(
       REST_SML_CAPABILITY_FEATUREOFINTERESTTYPE_NAME, smlCapabilityFeatureofinteresttypeName);
   this.smlCapabilityFeatureofinteresttypeName = smlCapabilityFeatureofinteresttypeName;
 }
Example #2
0
 @Setting(REST_RESOURCE_RELATION_OBSERVABLEPROPERTY_GET)
 public void setResourceRelationObservablepropertyGet(
     final String resourceRelationObservablepropertyGet) {
   Validation.notNullOrEmpty(
       REST_RESOURCE_RELATION_OBSERVABLEPROPERTY_GET, resourceRelationObservablepropertyGet);
   this.resourceRelationObservablepropertyGet = resourceRelationObservablepropertyGet;
 }
Example #3
0
 @Setting(REST_SML_CAPABILITY_INSERTIONMETADATA_NAME)
 public void setSmlCapabilityInsertionmetadataName(
     final String smlCapabilityInsertionmetadataName) {
   Validation.notNullOrEmpty(
       REST_SML_CAPABILITY_INSERTIONMETADATA_NAME, smlCapabilityInsertionmetadataName);
   this.smlCapabilityInsertionmetadataName = smlCapabilityInsertionmetadataName;
 }
Example #4
0
 @Setting(REST_HTTP_HEADER_IDENTIFIER_XDELETEDRESOURCEID)
 public void setHttpHeaderIdentifierXDeletedResourceId(
     final String httpHeaderIdentifierXDeletedResourceId) {
   Validation.notNullOrEmpty(
       REST_HTTP_HEADER_IDENTIFIER_XDELETEDRESOURCEID, httpHeaderIdentifierXDeletedResourceId);
   this.httpHeaderIdentifierXDeletedResourceId = httpHeaderIdentifierXDeletedResourceId;
 }
Example #5
0
 @Setting(REST_SOS_CAPABILITIES_SECTION_NAME_CONTENTS)
 public void setSosCapabilitiesSectionNameContents(
     final String sosCapabilitiesSectionNameContents) {
   Validation.notNullOrEmpty(
       REST_SOS_CAPABILITIES_SECTION_NAME_CONTENTS, sosCapabilitiesSectionNameContents);
   this.sosCapabilitiesSectionNameContents = sosCapabilitiesSectionNameContents;
 }
Example #6
0
 @Setting(REST_HTTP_GET_PARAMETERNAME_OBSERVEDPROPERTY)
 public void setHttpGetParameternameObservedproperty(
     final String httpGetParameternameObservedproperty) {
   Validation.notNullOrEmpty(
       REST_HTTP_GET_PARAMETERNAME_OBSERVEDPROPERTY, httpGetParameternameObservedproperty);
   this.httpGetParameternameObservedproperty = httpGetParameternameObservedproperty;
 }
Example #7
0
 @Setting(REST_HTTP_GET_PARAMETERNAME_TEMPORALFILTER)
 public void setHttpGetParameternameTemporalfilter(
     final String httpGetParameternameTemporalfilter) {
   Validation.notNullOrEmpty(
       REST_HTTP_GET_PARAMETERNAME_TEMPORALFILTER, httpGetParameternameTemporalfilter);
   this.httpGetParameternameTemporalfilter = httpGetParameternameTemporalfilter;
 }
Example #8
0
 @Setting(REST_SOS_ERRORMESSAGE_OPERATIONNOTSUPPORTED_END)
 public void setSosErrormessageOperationNotSupportedEnd(
     final String sosErrormessageOperationNotSupportedEnd) {
   Validation.notNullOrEmpty(
       REST_SOS_ERRORMESSAGE_OPERATIONNOTSUPPORTED_END, sosErrormessageOperationNotSupportedEnd);
   this.sosErrormessageOperationNotSupportedEnd = sosErrormessageOperationNotSupportedEnd;
 }
Example #9
0
 @Setting(REST_ERROR_MSG_BAD_GET_REQUEST_GLOBAL_RESOURCE)
 public void setErrorMessageBadGetRequestGlobalResource(
     final String errorMessageBadGetRequestGlobalResource) {
   Validation.notNullOrEmpty(
       REST_ERROR_MSG_BAD_GET_REQUEST_GLOBAL_RESOURCE, errorMessageBadGetRequestGlobalResource);
   this.errorMessageBadGetRequestGlobalResource = errorMessageBadGetRequestGlobalResource;
 }
Example #10
0
 @Setting(REST_ERROR_MSG_WRONG_CONTENT_TYPE_IN_ACCEPT_HEADER)
 public void setErrorMessageWrongContentTypeInAcceptHeader(
     final String errorMessageWrongContentTypeInAcceptHeader) {
   Validation.notNullOrEmpty(
       REST_ERROR_MSG_WRONG_CONTENT_TYPE_IN_ACCEPT_HEADER,
       errorMessageWrongContentTypeInAcceptHeader);
   this.errorMessageWrongContentTypeInAcceptHeader = errorMessageWrongContentTypeInAcceptHeader;
 }
Example #11
0
 @Setting(REST_ERROR_MSG_HTTP_METHOD_NOT_ALLOWED_FOR_RESOURCE)
 public void setErrorMessageHttpMethodNotAllowedForResource(
     final String errorMessageHttpMethodNotAllowedForResource) {
   Validation.notNullOrEmpty(
       REST_ERROR_MSG_HTTP_METHOD_NOT_ALLOWED_FOR_RESOURCE,
       errorMessageHttpMethodNotAllowedForResource);
   this.errorMessageHttpMethodNotAllowedForResource = errorMessageHttpMethodNotAllowedForResource;
 }
Example #12
0
 @Setting(REST_SOS_ERRORMESSAGE_OPERATIONNOTSUPPORTED_START)
 public void setSosErrormessageOperationNotSupportedStart(
     final String sosErrormessageOperationNotSupportedStart) {
   Validation.notNullOrEmpty(
       REST_SOS_ERRORMESSAGE_OPERATIONNOTSUPPORTED_START,
       sosErrormessageOperationNotSupportedStart);
   this.sosErrormessageOperationNotSupportedStart = sosErrormessageOperationNotSupportedStart;
 }
Example #13
0
 private MediaType mediaType(final String setting, final String mediaType) {
   Validation.notNullOrEmpty(setting, mediaType);
   try {
     return MediaType.parse(mediaType);
   } catch (final IllegalArgumentException e) {
     throw new ConfigurationException(String.format("%s is not a valid content type!", mediaType));
   }
 }
Example #14
0
 @Setting(REST_ERROR_MSG_BAD_GET_REQUEST_NO_VALID_KVP_PARAMETER)
 public void setErrorMessageBadGetRequestNoValidKvpParameter(
     final String errorMessageBadGetRequestNoValidKvpParameter) {
   Validation.notNullOrEmpty(
       REST_ERROR_MSG_BAD_GET_REQUEST_NO_VALID_KVP_PARAMETER,
       errorMessageBadGetRequestNoValidKvpParameter);
   this.errorMessageBadGetRequestNoValidKvpParameter =
       errorMessageBadGetRequestNoValidKvpParameter;
 }
Example #15
0
 @Setting(ServiceSettings.SERVICE_URL)
 public void setServiceUrl(final URI serviceURL) {
   Validation.notNull("Service URL", serviceURL);
   String url = serviceURL.toString();
   if (url.contains("?")) {
     url = url.split("[?]")[0];
   }
   serviceUrl = url;
 }
Example #16
0
 @Setting(REST_HTTP_OPERATIONNOTALLOWEDFORRESOURCETYPE_MESSAGE_START)
 public void setHttpOperationNotAllowedForResourceTypeMessageStart(
     final String httpOperationNotAllowedForResourceTypeMessageStart) {
   Validation.notNullOrEmpty(
       REST_HTTP_OPERATIONNOTALLOWEDFORRESOURCETYPE_MESSAGE_START,
       httpOperationNotAllowedForResourceTypeMessageStart);
   this.httpOperationNotAllowedForResourceTypeMessageStart =
       httpOperationNotAllowedForResourceTypeMessageStart;
 }
Example #17
0
 @Setting(REST_RESOURCE_RELATION_SENSOR_UPDATE)
 public void setResourceRelationSensorUpdate(final String resourceRelationSensorUpdate) {
   Validation.notNullOrEmpty(REST_RESOURCE_RELATION_SENSOR_UPDATE, resourceRelationSensorUpdate);
   this.resourceRelationSensorUpdate = resourceRelationSensorUpdate;
 }
Example #18
0
 @Setting(REST_SML_CAPABILITY_OBSERVATIONTYPE_NAME)
 public void setSmlCapabilityObservationtypeName(final String smlCapabilityObservationtypeName) {
   Validation.notNullOrEmpty(
       REST_SML_CAPABILITY_OBSERVATIONTYPE_NAME, smlCapabilityObservationtypeName);
   this.smlCapabilityObservationtypeName = smlCapabilityObservationtypeName;
 }
Example #19
0
 @Setting(REST_RESOURCE_RELATION_SELF)
 public void setResourceRelationSelf(final String resourceRelationSelf) {
   Validation.notNullOrEmpty(REST_RESOURCE_RELATION_SELF, resourceRelationSelf);
   this.resourceRelationSelf = resourceRelationSelf;
 }
Example #20
0
 @Setting(REST_RESOURCE_RELATION_SENSORS_GET)
 public void setResourceRelationSensorsGet(final String resourceRelationSensorsGet) {
   Validation.notNullOrEmpty(REST_RESOURCE_RELATION_SENSORS_GET, resourceRelationSensorsGet);
   this.resourceRelationSensorsGet = resourceRelationSensorsGet;
 }
Example #21
0
 @Setting(REST_ENCODING_PREFIX)
 public void setRestEncodingPrefix(final String restEncodingPrefix) {
   Validation.notNullOrEmpty(REST_ENCODING_PREFIX, restEncodingPrefix);
   this.restEncodingPrefix = restEncodingPrefix;
 }
Example #22
0
 @Setting(REST_SOS_SERVICE)
 public void setSosService(final String sosService) {
   Validation.notNullOrEmpty(REST_SOS_SERVICE, sosService);
   this.sosService = sosService;
 }
Example #23
0
 @Setting(REST_URLPATTERN)
 public void setUrlpattern(final String urlpattern) {
   Validation.notNullOrEmpty(REST_URLPATTERN, urlpattern);
   this.urlpattern = urlpattern;
 }
Example #24
0
 @Setting(REST_SOS_VERSION)
 public void setSosVersion(final String sosVersion) {
   Validation.notNullOrEmpty(REST_SOS_VERSION, sosVersion);
   this.sosVersion = sosVersion;
 }
Example #25
0
 @Setting(REST_SOS_TERMS_PROCEDUREIDENTIFIER)
 public void setSosTermsProcedureidentifier(final String sosTermsProcedureidentifier) {
   Validation.notNullOrEmpty(REST_SOS_TERMS_PROCEDUREIDENTIFIER, sosTermsProcedureidentifier);
   this.sosTermsProcedureidentifier = sosTermsProcedureidentifier;
 }
Example #26
0
 @Setting(REST_RESOURCE_SENSORS)
 public void setResourceSensors(final String resourceSensors) {
   Validation.notNullOrEmpty(REST_RESOURCE_SENSORS, resourceSensors);
   this.resourceSensors = resourceSensors;
 }
Example #27
0
 @Setting(REST_URL_ENCODING)
 public void setUrlEncoding(final String urlEncoding) {
   Validation.notNull(REST_URL_ENCODING, urlEncoding);
   this.urlEncoding = urlEncoding;
 }
Example #28
0
 @Setting(REST_RESOURCE_TYPE)
 public void setResourceType(final String resourceType) {
   Validation.notNullOrEmpty(REST_RESOURCE_TYPE, resourceType);
   this.resourceType = resourceType;
 }
Example #29
0
 @Setting(RestSettings.REST_ENCODING_SCHEMA_URL)
 public void setEncodingSchemaUrl(final URI encodingSchemaUrl) {
   Validation.notNull(REST_ENCODING_SCHEMA_URL, encodingSchemaUrl);
   this.encodingSchemaUrl = encodingSchemaUrl;
 }
Example #30
0
 @Setting(REST_ENCODING_NAMESPACE)
 public void setRestEncodingNamespace(final URI restEncodingNamespace) {
   Validation.notNull(REST_ENCODING_NAMESPACE, restEncodingNamespace);
   this.restEncodingNamespace = restEncodingNamespace.toString();
 }