Package com.linecorp.armeria.common
Class AbstractHttpData
- java.lang.Object
-
- com.linecorp.armeria.common.AbstractHttpData
-
- All Implemented Interfaces:
HttpData
,HttpObject
- Direct Known Subclasses:
ByteBufHttpData
,DefaultHttpData
public abstract class AbstractHttpData extends Object implements HttpData
Support APIs for creating well-behavedHttpData
objects.HttpData
generally should extendAbstractHttpData
to interact with otherHttpData
implementations, via, e.g.,equals
.
-
-
Field Summary
-
Fields inherited from interface com.linecorp.armeria.common.HttpData
EMPTY_DATA
-
-
Constructor Summary
Constructors Constructor Description AbstractHttpData()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
protected abstract byte
getByte(int index)
Gets thebyte
value at the givenindex
.int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.linecorp.armeria.common.HttpData
array, isEmpty, length, offset, toInputStream, toReader, toReaderAscii, toReaderUtf8, toString, toStringAscii, toStringUtf8
-
Methods inherited from interface com.linecorp.armeria.common.HttpObject
isEndOfStream
-
-