public class BodyFetchElement extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CONTENT |
static int |
HEADER |
static int |
HEADER_FIELDS |
static int |
HEADER_NOT_FIELDS |
static int |
MIME |
static int |
TEXT |
Constructor and Description |
---|
BodyFetchElement(String name,
int sectionType,
int[] path,
Collection<String> fieldNames,
Long firstOctet,
Long numberOfOctets) |
Modifier and Type | Method and Description |
---|---|
static BodyFetchElement |
createRFC822() |
static BodyFetchElement |
createRFC822Header() |
static BodyFetchElement |
createRFC822Text() |
boolean |
equals(Object obj) |
Collection<String> |
getFieldNames()
Gets field names.
|
Long |
getFirstOctet()
Gets the first octet for a partial fetch.
|
Long |
getNumberOfOctets()
For a partial fetch, gets the number of octets to be returned.
|
int[] |
getPath()
Gets the MIME path.
|
String |
getResponseName() |
int |
getSectionType()
Gets the type of section.
|
int |
hashCode() |
public static final int TEXT
public static final int MIME
public static final int HEADER
public static final int HEADER_FIELDS
public static final int HEADER_NOT_FIELDS
public static final int CONTENT
public BodyFetchElement(String name, int sectionType, int[] path, Collection<String> fieldNames, Long firstOctet, Long numberOfOctets)
public static final BodyFetchElement createRFC822()
public static final BodyFetchElement createRFC822Header()
public static final BodyFetchElement createRFC822Text()
public String getResponseName()
public final Collection<String> getFieldNames()
String
collection, when HEADER_FIELDS
or
HEADER_NOT_FIELDS
or null otherwisepublic final int[] getPath()
public final int getSectionType()
HEADER_FIELDS
, TEXT
, CONTENT
,
HEADER
, MIME
or HEADER_NOT_FIELDS
public final Long getFirstOctet()
public final Long getNumberOfOctets()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.