List of usage examples for java.util ResourceBundle getBundle
@CallerSensitive public static final ResourceBundle getBundle(String baseName)
From source file:JAXRDelete.java
public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("JAXRExamples"); Key key = null;/*from ww w . j a v a 2 s . c o m*/ String queryURL = bundle.getString("query.url"); String publishURL = bundle.getString("publish.url"); String username = bundle.getString("registry.username"); String password = bundle.getString("registry.password"); if (args.length < 1) { System.out.println("Argument required: " + "-Dkey-string=<value>"); System.exit(1); } String keyString = args[0]; System.out.println("Key string is " + keyString); JAXRDelete jd = new JAXRDelete(); jd.makeConnection(queryURL, publishURL); key = jd.createOrgKey(keyString); if (key != null) { jd.executeRemove(key, username, password); } else { System.out.println("Key not found, nothing to remove"); } }
From source file:JAXRDeleteConcept.java
public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("JAXRExamples"); Key key = null;/* www . jav a2 s.c om*/ String queryURL = bundle.getString("query.url"); String publishURL = bundle.getString("publish.url"); String username = bundle.getString("registry.username"); String password = bundle.getString("registry.password"); if (args.length < 1) { System.out.println("Argument required: -Duuid-string=<value>"); System.exit(1); } String uuidString = args[0]; System.out.println("UUID string is " + uuidString); JAXRDeleteConcept jdc = new JAXRDeleteConcept(); jdc.makeConnection(queryURL, publishURL); key = jdc.createKey(uuidString); if (key != null) { jdc.executeRemove(key, username, password); } else { System.out.println("Key not found, nothing to remove"); } }
From source file:JAXRPublishConcept.java
public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("JAXRExamples"); String queryURL = bundle.getString("query.url"); String publishURL = bundle.getString("publish.url"); String username = bundle.getString("registry.username"); String password = bundle.getString("registry.password"); JAXRPublishConcept jpc = new JAXRPublishConcept(); jpc.makeConnection(queryURL, publishURL); jpc.executePublish(username, password); }//from www . j av a 2 s.co m
From source file:JAXRDeleteScheme.java
public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("JAXRExamples"); Key key = null;/*from w w w.ja v a2 s . co m*/ String queryURL = bundle.getString("query.url"); String publishURL = bundle.getString("publish.url"); String username = bundle.getString("registry.username"); String password = bundle.getString("registry.password"); if (args.length < 1) { System.out.println("Argument required: " + "-Duuid-string=<value>"); System.exit(1); } String keyString = args[0]; System.out.println("UUID string is " + keyString); JAXRDeleteScheme jd = new JAXRDeleteScheme(); jd.makeConnection(queryURL, publishURL); key = jd.createSchemeKey(keyString); if (key != null) { jd.executeRemove(key, username, password); } else { System.out.println("Key not found, nothing to remove"); } }
From source file:JAXRSaveClassificationScheme.java
public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("JAXRExamples"); String queryURL = bundle.getString("query.url"); String publishURL = bundle.getString("publish.url"); // Edit to provide your own username and password // Defaults for Registry Server are testuser/testuser String username = bundle.getString("registry.username"); String password = bundle.getString("registry.password"); JAXRSaveClassificationScheme jscs = new JAXRSaveClassificationScheme(); jscs.makeConnection(queryURL, publishURL); jscs.executePublish(username, password); }//from w ww. j av a2 s . c om
From source file:JAXRQuery.java
public static void main(String[] args) { ResourceBundle registryBundle = ResourceBundle.getBundle("JAXRExamples"); String queryURL = registryBundle.getString("query.url"); String publishURL = registryBundle.getString("publish.url"); if (args.length < 1) { System.out.println("Argument required: " + "-Dquery-string=<value>"); System.exit(1);/*from w ww . j av a 2s. c om*/ } String queryString = args[0]; System.out.println("Query string is " + queryString); JAXRQuery jq = new JAXRQuery(); jq.makeConnection(queryURL, publishURL); jq.executeQuery(queryString); }
From source file:JAXRQueryByWSDLClassification.java
public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("JAXRExamples"); String queryURL = bundle.getString("query.url"); String publishURL = bundle.getString("publish.url"); if (args.length < 1) { System.out.println("Argument required: " + "-Dquery-string=<value>"); System.exit(1);/* w w w.j a v a 2 s. com*/ } String queryString = args[0]; System.out.println("Query string is " + queryString); JAXRQueryByWSDLClassification jq = new JAXRQueryByWSDLClassification(); jq.makeConnection(queryURL, publishURL); jq.executeQuery(queryString); }
From source file:JAXRPublish.java
public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("JAXRExamples"); String queryURL = bundle.getString("query.url"); String publishURL = bundle.getString("publish.url"); String username = bundle.getString("registry.username"); String password = bundle.getString("registry.password"); JAXRPublish jp = new JAXRPublish(); jp.makeConnection(queryURL, publishURL); jp.executePublish(username, password); }//from www .j a va 2s . c om
From source file:JAXRQueryByNAICSClassification.java
public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("JAXRExamples"); String queryURL = bundle.getString("query.url"); String publishURL = bundle.getString("publish.url"); JAXRQueryByNAICSClassification jq = new JAXRQueryByNAICSClassification(); jq.makeConnection(queryURL, publishURL); jq.executeQuery();//www .j a v a2 s . c o m }
From source file:JAXRQueryPostal.java
public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("JAXRExamples"); String queryURL = bundle.getString("query.url"); String publishURL = bundle.getString("publish.url"); if (args.length < 2) { System.out.println("Arguments required: " + "-Dquery-string=<value> -Duuid-string=<value>"); System.exit(1);//from w ww. j av a 2 s . c om } String queryString = args[0]; System.out.println("Query string is " + queryString); String uuidString = args[1]; System.out.println("UUID string is " + uuidString); JAXRQueryPostal jq = new JAXRQueryPostal(); jq.makeConnection(queryURL, publishURL, uuidString); jq.executeQuery(queryString); }