Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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));
   }
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 19
0
 @Setting(REST_RESOURCE_RELATION_SELF)
 public void setResourceRelationSelf(final String resourceRelationSelf) {
   Validation.notNullOrEmpty(REST_RESOURCE_RELATION_SELF, resourceRelationSelf);
   this.resourceRelationSelf = resourceRelationSelf;
 }
Exemplo n.º 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;
 }
Exemplo n.º 21
0
 @Setting(REST_ENCODING_PREFIX)
 public void setRestEncodingPrefix(final String restEncodingPrefix) {
   Validation.notNullOrEmpty(REST_ENCODING_PREFIX, restEncodingPrefix);
   this.restEncodingPrefix = restEncodingPrefix;
 }
Exemplo n.º 22
0
 @Setting(REST_SOS_SERVICE)
 public void setSosService(final String sosService) {
   Validation.notNullOrEmpty(REST_SOS_SERVICE, sosService);
   this.sosService = sosService;
 }
Exemplo n.º 23
0
 @Setting(REST_URLPATTERN)
 public void setUrlpattern(final String urlpattern) {
   Validation.notNullOrEmpty(REST_URLPATTERN, urlpattern);
   this.urlpattern = urlpattern;
 }
Exemplo n.º 24
0
 @Setting(REST_SOS_VERSION)
 public void setSosVersion(final String sosVersion) {
   Validation.notNullOrEmpty(REST_SOS_VERSION, sosVersion);
   this.sosVersion = sosVersion;
 }
Exemplo n.º 25
0
 @Setting(REST_SOS_TERMS_PROCEDUREIDENTIFIER)
 public void setSosTermsProcedureidentifier(final String sosTermsProcedureidentifier) {
   Validation.notNullOrEmpty(REST_SOS_TERMS_PROCEDUREIDENTIFIER, sosTermsProcedureidentifier);
   this.sosTermsProcedureidentifier = sosTermsProcedureidentifier;
 }
Exemplo n.º 26
0
 @Setting(REST_RESOURCE_SENSORS)
 public void setResourceSensors(final String resourceSensors) {
   Validation.notNullOrEmpty(REST_RESOURCE_SENSORS, resourceSensors);
   this.resourceSensors = resourceSensors;
 }
Exemplo n.º 27
0
 @Setting(REST_URL_ENCODING)
 public void setUrlEncoding(final String urlEncoding) {
   Validation.notNull(REST_URL_ENCODING, urlEncoding);
   this.urlEncoding = urlEncoding;
 }
Exemplo n.º 28
0
 @Setting(REST_RESOURCE_TYPE)
 public void setResourceType(final String resourceType) {
   Validation.notNullOrEmpty(REST_RESOURCE_TYPE, resourceType);
   this.resourceType = resourceType;
 }
Exemplo n.º 29
0
 @Setting(RestSettings.REST_ENCODING_SCHEMA_URL)
 public void setEncodingSchemaUrl(final URI encodingSchemaUrl) {
   Validation.notNull(REST_ENCODING_SCHEMA_URL, encodingSchemaUrl);
   this.encodingSchemaUrl = encodingSchemaUrl;
 }
Exemplo n.º 30
0
 @Setting(REST_ENCODING_NAMESPACE)
 public void setRestEncodingNamespace(final URI restEncodingNamespace) {
   Validation.notNull(REST_ENCODING_NAMESPACE, restEncodingNamespace);
   this.restEncodingNamespace = restEncodingNamespace.toString();
 }