Package org.atmosphere.cpr
Interface HeaderConfig
public interface HeaderConfig
This interface contains all Atmosphere headers shared between the client and the server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringServer acknowledgment of a received message.static final StringHeader carrying the authentication token.static final StringHeader sent by the server to indicate the token has expired and no refresh was possible.static final StringHeader sent by the server when a refreshed token is available.static final StringWhen a unexpected error occurs.static final StringIf long-polling is used during a POST, this header is added after the first successful response.static final StringThe current version of Atmosphere Framework.static final StringClient-assigned message ID for acknowledgment tracking.static final StringThe unique tracking ID generated by the server.static final StringThe message size sent by Atmosphere.static final StringThe current transport used.static final Stringstatic final StringThe desired heartbeat interval in seconds sent by the server and asked by the client.
-
Field Details
-
X_ATMOSPHERE_FIRSTLONGPOLLING_DONE
If long-polling is used during a POST, this header is added after the first successful response.- See Also:
-
X_ATMOSPHERE_TRANSPORT
The current transport used.- See Also:
-
LONG_POLLING_TRANSPORT
- See Also:
-
STREAMING_TRANSPORT
- See Also:
-
POLLING_TRANSPORT
- See Also:
-
WEBSOCKET_TRANSPORT
- See Also:
-
SSE_TRANSPORT
- See Also:
-
GRPC_TRANSPORT
- See Also:
-
DISCONNECT_TRANSPORT_MESSAGE
- See Also:
-
WEBSOCKET_X_ATMOSPHERE_TRANSPORT
- See Also:
-
X_FIRST_REQUEST
- See Also:
-
X_ATMOSPHERE_ERROR
When a unexpected error occurs.- See Also:
-
X_ATMOSPHERE_TRACKING_ID
The unique tracking ID generated by the server.- See Also:
-
X_ATMOSPHERE_FRAMEWORK
The current version of Atmosphere Framework.- See Also:
-
X_HEARTBEAT_SERVER
The desired heartbeat interval in seconds sent by the server and asked by the client.- See Also:
-
X_ATMOSPHERE
- See Also:
-
X_ATMOSPHERE_TRACKMESSAGESIZE
The message size sent by Atmosphere.- See Also:
-
ACCESS_CONTROL_ALLOW_ORIGIN
- See Also:
-
ACCESS_CONTROL_ALLOW_CREDENTIALS
- See Also:
-
PRAGMA
- See Also:
-
CACHE_CONTROL
- See Also:
-
EXPIRES
- See Also:
-
WEBSOCKET_UPGRADE
- See Also:
-
ATMOSPHERE_POST_BODY
- See Also:
-
X_ATMO_PROTOCOL
- See Also:
-
X_ATMO_BINARY
- See Also:
-
X_ATMO_WEBSOCKET_PROXY
- See Also:
-
FORCE_BINARY
- See Also:
-
X_ATMOSPHERE_AUTH
Header carrying the authentication token. Used by long-polling (fetch) requests which can set custom headers. WebSocket and SSE use the query parameter instead.- See Also:
-
X_ATMOSPHERE_AUTH_REFRESH
Header sent by the server when a refreshed token is available. The client should store this and use it for subsequent requests.- See Also:
-
X_ATMOSPHERE_AUTH_EXPIRED
Header sent by the server to indicate the token has expired and no refresh was possible. The client should re-authenticate.- See Also:
-
X_ATMOSPHERE_MESSAGE_ID
Client-assigned message ID for acknowledgment tracking. Sent by the client; echoed back inX_ATMOSPHERE_ACK.- See Also:
-
X_ATMOSPHERE_ACK
Server acknowledgment of a received message. Contains the message ID.- See Also:
-