Streaming API under a proxy server


I am trying to use Streaming API in a environment which has Proxy server.
Is there any provision in the API to provide the Proxy server details and the credentials.
What changes needs to be done.
I am using Java.


Due to the way in which proxy servers work, they typically expect a response from the server before they can return this response to the client. To use an HTTP or WebSocket streaming service, such as DataSift, a connection needs to be kept alive between the client and DataSift's streaming service. Unfortunately, most proxy servers do not handle this type of functionality well.