All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.uniroma2.art.semanticturkey.extension.impl.deployer.http.HTTPDeployerConfiguration Maven / Gradle / Ivy

There is a newer version: 12.2
Show newest version
package it.uniroma2.art.semanticturkey.extension.impl.deployer.http;

import java.net.URL;
import java.util.Map;

import it.uniroma2.art.semanticturkey.config.Configuration;
import it.uniroma2.art.semanticturkey.properties.Enumeration;
import it.uniroma2.art.semanticturkey.properties.Required;
import it.uniroma2.art.semanticturkey.properties.STProperty;

/**
 * Configuration class for {@link HTTPDeployerFactory}.
 * 
 * Manuel Fiorelli
 */
public class HTTPDeployerConfiguration implements Configuration {

	public static class MessageKeys {
		public static final String keyBase = "it.uniroma2.art.semanticturkey.extension.impl.deployer.http.HTTPDeployerConfiguration";

		public static final String shortName = keyBase + ".shortName";
		public static final String htmlWarning = keyBase + ".htmlWarning";
		public static final String endpoint$description = keyBase + ".endpoint.description";
		public static final String endpoint$displayName = keyBase + ".endpoint.displayName";
		public static final String httpVerb$description = keyBase + ".httpVerb.description";
		public static final String httpVerb$displayName = keyBase + ".httpVerb.displayName";
		public static final String queryParameters$description = keyBase + ".queryParameters.description";
		public static final String queryParameters$displayName = keyBase + ".queryParameters.displayName";
		public static final String requestHeaders$description = keyBase + ".requestHeaders.description";
		public static final String requestHeaders$displayName = keyBase + ".requestHeaders.displayName";
		public static final String username$description = keyBase + ".username.description";
		public static final String username$displayName = keyBase + ".username.displayName";
		public static final String password$description = keyBase + ".password.description";
		public static final String password$displayName = keyBase + ".password.displayName";
	}

	@Override
	public String getShortName() {
		return "{" + MessageKeys.shortName + "}";
	}

	@Override
	public String getHTMLWarning() {
		return "{" + MessageKeys.htmlWarning + "}";
	}

	@STProperty(description = "{" + MessageKeys.endpoint$description + "}", displayName = "{" + MessageKeys.endpoint$displayName + "}")
	@Required
	public URL endpoint;

	@STProperty(description = "{" + MessageKeys.httpVerb$description + "}", displayName = "{" + MessageKeys.httpVerb$displayName + "}")
	@Enumeration({ "PUT", "POST" })
	@Required
	public String httpVerb;

	@STProperty(description = "{" + MessageKeys.queryParameters$description + "}", displayName = "{" + MessageKeys.queryParameters$displayName + "}")
	public Map queryParameters;

	@STProperty(description = "{" + MessageKeys.requestHeaders$description + "}", displayName = "{" + MessageKeys.requestHeaders$displayName + "}")
	public Map requestHeaders;

	@STProperty(description = "{" + MessageKeys.username$description + "}", displayName = "{" + MessageKeys.username$displayName + "}")
	public String username;

	@STProperty(description = "{" + MessageKeys.password$description + "}", displayName = "{" + MessageKeys.password$displayName + "}")
	public String password;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy