I am trying to customize the response of a bayeux server response so that i can add some header parameters before sending it back to UI. I am able to add header values in the request using customize method in a LongPollingTransport. Much help needed.
How do I get the response object in a bayeux server response in CometD
237 Views Asked by rahul At
1
There are 1 best solutions below
Related Questions in LONG-POLLING
- Java, Telegram Bot runtime problems
- How do I detect client disconnect from a long poll to a Spring endpoint
- How to update all clients when a webhook is recieved in Python Flask
- HTTP Longpolling with changing request parameters using rxjs
- Laravel rest api - calling SSE or Long polling blocks other HTTP request
- PHP script doesn't quit when browser connection is closed
- During tomcat/jersey shutdown while long polling, the ServletContextListener hook is delayed by 7 seconds, why?
- How to occasionally push notifications to mobile applications?
- Socket.io with http polling without sticky sessions in a distributed system
- Implementing long polling with python multiprocessing but doesn't work
- How can I save a photo from a telegram bot user to a folder on a disk in good quality?
- Long Polling with an array php Javascript
- Long-polling with message queues in a clustered environment
- Bi-Directional Vs Uni-Directional communication
- Tomcat, NGINX, Vaadin, Spring Boot and LONG POLLING Push
Related Questions in COMETD
- CometD NodeJS handshake failing
- Does CometD support partial websocket messaging
- Cometd additional info during handshake
- How to resolve "error":402 unknown client " issue while using live chat Cometd in iOS while the still the connection is open
- Application response times are high with cometd calls
- How to add CometD 5x and above jars to Maven project
- Log4j Vulnerability in jetty jetty-hightide-7.6.1.v20120215/webapps/cometd.war
- Flooding of message at side client from server channel and wrong message with CometD frame work
- Cometd: specifying max threads in java client
- Cometd with Android: java.lang.RuntimeException: Could not find an implementation class
- Salesforce Camel Kafka Connector converting message to weird format
- Adding SSL to CometD
- How does CometD handle ports in long polling?
- How to view http traffic in jetty http client?
- Bayeuxclient disconnects
Related Questions in BAYEUX
- Which are the benefits of Bayeux protocol compared to REST?
- Bayeuxclient disconnects
- Getting a 402 client unknown while trying to handshake with a CometD /Bayeux server
- Cometd/bayeux client Issue
- "Run as Administrator" (System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.)
- Spring boot Consider defining a bean named 'servletContext' in your configuration
- Java bayeux client disconnects with TimeoutException when idle
- Salesforce cometD: 401::Request requires authentication
- Cometd/bayeux client + salesforce streaming API issue
- what actions should be triggered for /meta/connect channel message reconnect=handshake?
- cometd via websocket: "unknown bayeux transport"
- Usage of "advice" in Cumulocity Real Time Notifications
- How do I get the response object in a bayeux server response in CometD
- Add custom fields to CometD subscribe message
- Bayeux/CometD C Lang Client
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
CometD tries to abstract away from the underlying protocol.
When you use
WebSocket, for example, the concepts of request headers and response headers simply do not exist anymore.As such, it is way better that if you have additional information to send to the client, well that additional information should go in the CometD messages rather than in HTTP headers.
Furthermore, when using HTTP as a transport, a single HTTP response may carry multiple messages, so it is not clear to what CometD message the additional information would refer to.
Your question is too generic (does not say why you want to add headers, does not say what specific header, etc.) to get a precise answer, but bottom line is that you typically don't want to use HTTP headers with CometD.