Esempio n. 1
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;
 }
Esempio n. 2
0
 @Setting(RestSettings.REST_ENCODING_SCHEMA_URL)
 public void setEncodingSchemaUrl(final URI encodingSchemaUrl) {
   Validation.notNull(REST_ENCODING_SCHEMA_URL, encodingSchemaUrl);
   this.encodingSchemaUrl = encodingSchemaUrl;
 }
Esempio n. 3
0
 @Setting(REST_URL_ENCODING)
 public void setUrlEncoding(final String urlEncoding) {
   Validation.notNull(REST_URL_ENCODING, urlEncoding);
   this.urlEncoding = urlEncoding;
 }
Esempio n. 4
0
 @Setting(REST_ENCODING_NAMESPACE)
 public void setRestEncodingNamespace(final URI restEncodingNamespace) {
   Validation.notNull(REST_ENCODING_NAMESPACE, restEncodingNamespace);
   this.restEncodingNamespace = restEncodingNamespace.toString();
 }