@Setting(REST_SML_CAPABILITY_FEATUREOFINTERESTTYPE_NAME) public void setSmlCapabilityFeatureofinteresttypeName( final String smlCapabilityFeatureofinteresttypeName) { Validation.notNullOrEmpty( REST_SML_CAPABILITY_FEATUREOFINTERESTTYPE_NAME, smlCapabilityFeatureofinteresttypeName); this.smlCapabilityFeatureofinteresttypeName = smlCapabilityFeatureofinteresttypeName; }
@Setting(REST_RESOURCE_RELATION_OBSERVABLEPROPERTY_GET) public void setResourceRelationObservablepropertyGet( final String resourceRelationObservablepropertyGet) { Validation.notNullOrEmpty( REST_RESOURCE_RELATION_OBSERVABLEPROPERTY_GET, resourceRelationObservablepropertyGet); this.resourceRelationObservablepropertyGet = resourceRelationObservablepropertyGet; }
@Setting(REST_SML_CAPABILITY_INSERTIONMETADATA_NAME) public void setSmlCapabilityInsertionmetadataName( final String smlCapabilityInsertionmetadataName) { Validation.notNullOrEmpty( REST_SML_CAPABILITY_INSERTIONMETADATA_NAME, smlCapabilityInsertionmetadataName); this.smlCapabilityInsertionmetadataName = smlCapabilityInsertionmetadataName; }
@Setting(REST_HTTP_HEADER_IDENTIFIER_XDELETEDRESOURCEID) public void setHttpHeaderIdentifierXDeletedResourceId( final String httpHeaderIdentifierXDeletedResourceId) { Validation.notNullOrEmpty( REST_HTTP_HEADER_IDENTIFIER_XDELETEDRESOURCEID, httpHeaderIdentifierXDeletedResourceId); this.httpHeaderIdentifierXDeletedResourceId = httpHeaderIdentifierXDeletedResourceId; }
@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; }
@Setting(REST_HTTP_GET_PARAMETERNAME_OBSERVEDPROPERTY) public void setHttpGetParameternameObservedproperty( final String httpGetParameternameObservedproperty) { Validation.notNullOrEmpty( REST_HTTP_GET_PARAMETERNAME_OBSERVEDPROPERTY, httpGetParameternameObservedproperty); this.httpGetParameternameObservedproperty = httpGetParameternameObservedproperty; }
@Setting(REST_HTTP_GET_PARAMETERNAME_TEMPORALFILTER) public void setHttpGetParameternameTemporalfilter( final String httpGetParameternameTemporalfilter) { Validation.notNullOrEmpty( REST_HTTP_GET_PARAMETERNAME_TEMPORALFILTER, httpGetParameternameTemporalfilter); this.httpGetParameternameTemporalfilter = httpGetParameternameTemporalfilter; }
@Setting(REST_SOS_ERRORMESSAGE_OPERATIONNOTSUPPORTED_END) public void setSosErrormessageOperationNotSupportedEnd( final String sosErrormessageOperationNotSupportedEnd) { Validation.notNullOrEmpty( REST_SOS_ERRORMESSAGE_OPERATIONNOTSUPPORTED_END, sosErrormessageOperationNotSupportedEnd); this.sosErrormessageOperationNotSupportedEnd = sosErrormessageOperationNotSupportedEnd; }
@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; }
@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; }
@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; }
@Setting(REST_SOS_ERRORMESSAGE_OPERATIONNOTSUPPORTED_START) public void setSosErrormessageOperationNotSupportedStart( final String sosErrormessageOperationNotSupportedStart) { Validation.notNullOrEmpty( REST_SOS_ERRORMESSAGE_OPERATIONNOTSUPPORTED_START, sosErrormessageOperationNotSupportedStart); this.sosErrormessageOperationNotSupportedStart = sosErrormessageOperationNotSupportedStart; }
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)); } }
@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; }
@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; }
@Setting(REST_HTTP_OPERATIONNOTALLOWEDFORRESOURCETYPE_MESSAGE_START) public void setHttpOperationNotAllowedForResourceTypeMessageStart( final String httpOperationNotAllowedForResourceTypeMessageStart) { Validation.notNullOrEmpty( REST_HTTP_OPERATIONNOTALLOWEDFORRESOURCETYPE_MESSAGE_START, httpOperationNotAllowedForResourceTypeMessageStart); this.httpOperationNotAllowedForResourceTypeMessageStart = httpOperationNotAllowedForResourceTypeMessageStart; }
@Setting(REST_RESOURCE_RELATION_SENSOR_UPDATE) public void setResourceRelationSensorUpdate(final String resourceRelationSensorUpdate) { Validation.notNullOrEmpty(REST_RESOURCE_RELATION_SENSOR_UPDATE, resourceRelationSensorUpdate); this.resourceRelationSensorUpdate = resourceRelationSensorUpdate; }
@Setting(REST_SML_CAPABILITY_OBSERVATIONTYPE_NAME) public void setSmlCapabilityObservationtypeName(final String smlCapabilityObservationtypeName) { Validation.notNullOrEmpty( REST_SML_CAPABILITY_OBSERVATIONTYPE_NAME, smlCapabilityObservationtypeName); this.smlCapabilityObservationtypeName = smlCapabilityObservationtypeName; }
@Setting(REST_RESOURCE_RELATION_SELF) public void setResourceRelationSelf(final String resourceRelationSelf) { Validation.notNullOrEmpty(REST_RESOURCE_RELATION_SELF, resourceRelationSelf); this.resourceRelationSelf = resourceRelationSelf; }
@Setting(REST_RESOURCE_RELATION_SENSORS_GET) public void setResourceRelationSensorsGet(final String resourceRelationSensorsGet) { Validation.notNullOrEmpty(REST_RESOURCE_RELATION_SENSORS_GET, resourceRelationSensorsGet); this.resourceRelationSensorsGet = resourceRelationSensorsGet; }
@Setting(REST_ENCODING_PREFIX) public void setRestEncodingPrefix(final String restEncodingPrefix) { Validation.notNullOrEmpty(REST_ENCODING_PREFIX, restEncodingPrefix); this.restEncodingPrefix = restEncodingPrefix; }
@Setting(REST_SOS_SERVICE) public void setSosService(final String sosService) { Validation.notNullOrEmpty(REST_SOS_SERVICE, sosService); this.sosService = sosService; }
@Setting(REST_URLPATTERN) public void setUrlpattern(final String urlpattern) { Validation.notNullOrEmpty(REST_URLPATTERN, urlpattern); this.urlpattern = urlpattern; }
@Setting(REST_SOS_VERSION) public void setSosVersion(final String sosVersion) { Validation.notNullOrEmpty(REST_SOS_VERSION, sosVersion); this.sosVersion = sosVersion; }
@Setting(REST_SOS_TERMS_PROCEDUREIDENTIFIER) public void setSosTermsProcedureidentifier(final String sosTermsProcedureidentifier) { Validation.notNullOrEmpty(REST_SOS_TERMS_PROCEDUREIDENTIFIER, sosTermsProcedureidentifier); this.sosTermsProcedureidentifier = sosTermsProcedureidentifier; }
@Setting(REST_RESOURCE_SENSORS) public void setResourceSensors(final String resourceSensors) { Validation.notNullOrEmpty(REST_RESOURCE_SENSORS, resourceSensors); this.resourceSensors = resourceSensors; }
@Setting(REST_URL_ENCODING) public void setUrlEncoding(final String urlEncoding) { Validation.notNull(REST_URL_ENCODING, urlEncoding); this.urlEncoding = urlEncoding; }
@Setting(REST_RESOURCE_TYPE) public void setResourceType(final String resourceType) { Validation.notNullOrEmpty(REST_RESOURCE_TYPE, resourceType); this.resourceType = resourceType; }
@Setting(RestSettings.REST_ENCODING_SCHEMA_URL) public void setEncodingSchemaUrl(final URI encodingSchemaUrl) { Validation.notNull(REST_ENCODING_SCHEMA_URL, encodingSchemaUrl); this.encodingSchemaUrl = encodingSchemaUrl; }
@Setting(REST_ENCODING_NAMESPACE) public void setRestEncodingNamespace(final URI restEncodingNamespace) { Validation.notNull(REST_ENCODING_NAMESPACE, restEncodingNamespace); this.restEncodingNamespace = restEncodingNamespace.toString(); }