Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-249

save to URLs with a protocol other than "file:"

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None

      Description

      Currently, the save(URL) method from AbstractFileConfiguration only supports "file:" URLs.
      Why not support writing to URLs too? It is as simple like this

      java.net.URLConnection connection = url.openConnection();
      connection.setDoOutput(true);
      connection.setDoInput(false);
      save(connection.getOutputStream());

      I could prepare a patch.

        Attachments

          Activity

            People

            • Assignee:
              ebourg Emmanuel Bourg
              Reporter:
              akruis Anselm Kruis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: