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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment