public class AvroHttpRequest extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
AvroHttpRequest.Builder
RecordBuilder for AvroHttpRequest instances.
|
Modifier and Type | Field and Description |
---|---|
List<HeaderEntry> |
header
Deprecated.
|
CharSequence |
httpMethod
Deprecated.
|
ByteBuffer |
inputStream
Deprecated.
|
CharSequence |
pathInfo
Deprecated.
|
CharSequence |
queryString
Deprecated.
|
CharSequence |
requestUrl
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
AvroHttpRequest()
Default constructor.
|
AvroHttpRequest(List<HeaderEntry> header,
CharSequence requestUrl,
CharSequence pathInfo,
CharSequence queryString,
CharSequence httpMethod,
ByteBuffer inputStream)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
List<HeaderEntry> |
getHeader()
Gets the value of the 'header' field.
|
CharSequence |
getHttpMethod()
Gets the value of the 'httpMethod' field.
|
ByteBuffer |
getInputStream()
Gets the value of the 'inputStream' field.
|
CharSequence |
getPathInfo()
Gets the value of the 'pathInfo' field.
|
CharSequence |
getQueryString()
Gets the value of the 'queryString' field.
|
CharSequence |
getRequestUrl()
Gets the value of the 'requestUrl' field.
|
org.apache.avro.Schema |
getSchema() |
static AvroHttpRequest.Builder |
newBuilder()
Creates a new AvroHttpRequest RecordBuilder.
|
static AvroHttpRequest.Builder |
newBuilder(AvroHttpRequest.Builder other)
Creates a new AvroHttpRequest RecordBuilder by copying an existing Builder.
|
static AvroHttpRequest.Builder |
newBuilder(AvroHttpRequest other)
Creates a new AvroHttpRequest RecordBuilder by copying an existing AvroHttpRequest instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setHeader(List<HeaderEntry> value)
Sets the value of the 'header' field.
|
void |
setHttpMethod(CharSequence value)
Sets the value of the 'httpMethod' field.
|
void |
setInputStream(ByteBuffer value)
Sets the value of the 'inputStream' field.
|
void |
setPathInfo(CharSequence value)
Sets the value of the 'pathInfo' field.
|
void |
setQueryString(CharSequence value)
Sets the value of the 'queryString' field.
|
void |
setRequestUrl(CharSequence value)
Sets the value of the 'requestUrl' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public List<HeaderEntry> header
@Deprecated public CharSequence requestUrl
@Deprecated public CharSequence pathInfo
@Deprecated public CharSequence queryString
@Deprecated public CharSequence httpMethod
@Deprecated public ByteBuffer inputStream
public AvroHttpRequest()
newBuilder()
.public AvroHttpRequest(List<HeaderEntry> header, CharSequence requestUrl, CharSequence pathInfo, CharSequence queryString, CharSequence httpMethod, ByteBuffer inputStream)
header
- The new value for headerrequestUrl
- The new value for requestUrlpathInfo
- The new value for pathInfoqueryString
- The new value for queryStringhttpMethod
- The new value for httpMethodinputStream
- The new value for inputStreampublic static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public List<HeaderEntry> getHeader()
public void setHeader(List<HeaderEntry> value)
value
- the value to set.public CharSequence getRequestUrl()
public void setRequestUrl(CharSequence value)
value
- the value to set.public CharSequence getPathInfo()
public void setPathInfo(CharSequence value)
value
- the value to set.public CharSequence getQueryString()
public void setQueryString(CharSequence value)
value
- the value to set.public CharSequence getHttpMethod()
public void setHttpMethod(CharSequence value)
value
- the value to set.public ByteBuffer getInputStream()
public void setInputStream(ByteBuffer value)
value
- the value to set.public static AvroHttpRequest.Builder newBuilder()
public static AvroHttpRequest.Builder newBuilder(AvroHttpRequest.Builder other)
other
- The existing builder to copy.public static AvroHttpRequest.Builder newBuilder(AvroHttpRequest other)
other
- The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
readExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.