Package org.eclipse.jetty.client
Class HttpConversation
- java.lang.Object
-
- org.eclipse.jetty.util.AttributesMap
-
- org.eclipse.jetty.client.HttpConversation
-
- All Implemented Interfaces:
Attributes
,Dumpable
@Deprecated(since="2021-05-27") public class HttpConversation extends AttributesMap
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
Attributes.Wrapper
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
-
Constructor Summary
Constructors Constructor Description HttpConversation()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
abort(java.lang.Throwable cause)
Deprecated.java.util.Deque<HttpExchange>
getExchanges()
Deprecated.java.util.List<Response.ResponseListener>
getResponseListeners()
Deprecated.Returns the list of response listeners that needs to be notified of response events.long
getTimeout()
Deprecated.Returns the total timeout for the conversation.java.lang.String
toString()
Deprecated.void
updateResponseListeners(Response.ResponseListener overrideListener)
Deprecated.Requests to update the response listener, eventually using the given override response listener, that must be notified instead of the first exchange response listeners.-
Methods inherited from class org.eclipse.jetty.util.AttributesMap
addAll, clearAttributes, dump, dump, getAttribute, getAttributeEntrySet, getAttributeNames, getAttributeNamesCopy, getAttributeNameSet, removeAttribute, setAttribute, size
-
-
-
-
Method Detail
-
getExchanges
public java.util.Deque<HttpExchange> getExchanges()
Deprecated.
-
getResponseListeners
public java.util.List<Response.ResponseListener> getResponseListeners()
Deprecated.Returns the list of response listeners that needs to be notified of response events. This list changes as the conversation proceeds, as follows:-
request R1 send => conversation.updateResponseListeners(null)
- exchanges in conversation: E1
- listeners to be notified: E1.listeners
-
response R1 arrived, 401 => conversation.updateResponseListeners(AuthenticationProtocolHandler.listener)
- exchanges in conversation: E1
- listeners to be notified: AuthenticationProtocolHandler.listener
-
request R2 send => conversation.updateResponseListeners(null)
- exchanges in conversation: E1 + E2
- listeners to be notified: E2.listeners + E1.listeners
-
response R2 arrived, 302 => conversation.updateResponseListeners(RedirectProtocolHandler.listener)
- exchanges in conversation: E1 + E2
- listeners to be notified: E2.listeners + RedirectProtocolHandler.listener
-
request R3 send => conversation.updateResponseListeners(null)
- exchanges in conversation: E1 + E2 + E3
- listeners to be notified: E3.listeners + E1.listeners
-
response R3 arrived, 200 => conversation.updateResponseListeners(null)
- exchanges in conversation: E1 + E2 + E3
- listeners to be notified: E3.listeners + E1.listeners
AuthenticationProtocolHandler
stores the successful authentication credentials while theRedirectProtocolHandler
performs a redirect).- Returns:
- the list of response listeners that needs to be notified of response events
-
request R1 send => conversation.updateResponseListeners(null)
-
updateResponseListeners
public void updateResponseListeners(Response.ResponseListener overrideListener)
Deprecated.Requests to update the response listener, eventually using the given override response listener, that must be notified instead of the first exchange response listeners. This works in conjunction withgetResponseListeners()
, returning the appropriate response listeners that needs to be notified of response events.- Parameters:
overrideListener
- the override response listener
-
getTimeout
public long getTimeout()
Deprecated.Returns the total timeout for the conversation.
The conversation total timeout is the total timeout of the first request in the conversation.
- Returns:
- the total timeout of the conversation
- See Also:
Request.getTimeout()
-
abort
public boolean abort(java.lang.Throwable cause)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classAttributesMap
-
-