Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6968163

WebSocket protocol support

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • None
    • None
    • core-libs
    • x86
    • windows_7

    Description

      A DESCRIPTION OF THE REQUEST :
      It is not possible to create an URL which should use web sockets protocol.

      new URL("ws://foo.bar/"); throws a malformed url exception even though this protocol should be legal.

      WebSockets specifications can be found at
      http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76

      As it is stated in the spec "ws" is used for this protocol.

      JUSTIFICATION :
      Based on the fact that web sockets become more and more popular within web applications, and there are more and more web servers that use them as well as more and more applications that need to use it, it would be good if the protocol is marked legal in jdk.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      URL instance should be created.
      ACTUAL -
      MalformedURLException is thrown.

      ---------- BEGIN SOURCE ----------
      new URL("ws://foo.bar");
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I guess vanilla strings could be used.

      Attachments

        Issue Links

          Activity

            People

              chegar Chris Hegarty
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: