Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8545

Unable to connect to POST methods with SseEventSource

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.14
    • None
    • JAX-RS
    • None
    • Unknown

    Description

      The SseEventSource is primarily targeted at using HTTP GET requests to initiate the connection. It is extremely difficult to use a POST request instead.

      POST requests are useful for when information (e.g. server side event filtering) needs to be passed in the request, but that information is too big for query parameters or it contains URL unsafe characters, or it is serialised using a Content-Type that can be decoded by JAX-RS body converters.

       

      It should be simple enough to add a configuration property into the web target passed to the SseEventSource. This could map to a JAX-RS entity. If the entity is present then it is used as the body of the post. Otherwise a GET is used.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              timothyjward Timothy James Ward
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: