Package org.eclipse.jetty.util
Interface Attachable
-
- All Known Subinterfaces:
IStream
- All Known Implementing Classes:
HTTP2Stream
,HttpConnection
,HttpConnectionOverFCGI
,HttpConnectionOverHTTP
,HttpConnectionOverHTTP2
public interface Attachable
Abstract mechanism to support attachment of miscellaneous objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getAttachment()
void
setAttachment(java.lang.Object attachment)
Attaches the given object to this stream for later retrieval.
-
-
-
Method Detail
-
getAttachment
java.lang.Object getAttachment()
- Returns:
- the object attached to this instance
- See Also:
setAttachment(Object)
-
setAttachment
void setAttachment(java.lang.Object attachment)
Attaches the given object to this stream for later retrieval.- Parameters:
attachment
- the object to attach to this instance
-
-