public static class Site.Avro extends Object implements Site<SiteAvro>
Site.Avro, Site.AvroBuilder, Site.Builder<T>, Site.Comparator, Site.NativeImpl, Site.Protobuf, Site.ProtobufBuilder, Site.Thrift, Site.ThriftBuilder| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Avro(byte[] binaryEncoding)
Constructs a new Avro instance based on a message's binary encoding.
|
| Modifier and Type | Method and Description |
|---|---|
Site.Avro |
encoded() |
boolean |
equals(Object other) |
static Site<SiteAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
SiteAvro |
get()
Returns underlying object.
|
List<String> |
getCat()
Array of IAB content categories for the overall site.
|
Content<?> |
getContent()
See Content Object.
|
String |
getDomain()
Domain of the site, used for advertiser side blocking.
|
String |
getId()
Site ID on the exchange.
|
String |
getKeywords()
List of keywords describing this site in a comma separated string.
|
String |
getName()
Site name (may be masked at publisher’s request).
|
String |
getPage()
URL of the page where the impression will be shown.
|
List<String> |
getPagecat()
Array of IAB content categories for the current page.
|
int |
getPrivacypolicy()
Specifies whether the site has a privacy policy.
|
Publisher<?> |
getPublisher()
See Publisher Object.
|
String |
getRef()
Referrer URL that caused navigation to the current page.
|
String |
getSearch()
Search string that caused navigation to the current page.
|
List<String> |
getSectioncat()
Array of IAB content categories for the current subsection of the site.
|
int |
hashCode() |
boolean |
isDefaultCat() |
boolean |
isDefaultContent() |
boolean |
isDefaultDomain() |
boolean |
isDefaultId() |
boolean |
isDefaultKeywords() |
boolean |
isDefaultName() |
boolean |
isDefaultPage() |
boolean |
isDefaultPagecat() |
boolean |
isDefaultPrivacypolicy() |
boolean |
isDefaultPublisher() |
boolean |
isDefaultRef() |
boolean |
isDefaultSearch() |
boolean |
isDefaultSectioncat() |
Site.Builder<SiteAvro> |
newBuilder()
Creates a new builder based on this object.
|
byte[] |
toByteArray()
Returns an Avro binary encoding of this record.
|
ByteBuffer |
toByteBuffer()
Returns the Avro binary encoding of this record wrapped in a read-only buffer.
|
String |
toString() |
avro, avro, compareTo, getAvroClass, getAvroSchema, getComparator, getProtobufClass, getProtobufDescriptor, getProtobufProtocolClass, getProtobufProtocolDescriptor, getThriftClass, getThriftMetadataMap, isDefault, nativeImpl, newAvroBuilder, newAvroBuilder, newAvroBuilder, newAvroBuilder, newNativeImplBuilder, newNativeImplBuilder, newProtobufBuilder, newProtobufBuilder, newProtobufBuilder, newThriftBuilder, newThriftBuilder, newThriftBuilder, protobuf, protobuf, thrift, thriftpublic static final long serialVersionUID
public Avro(byte[] binaryEncoding)
public Site.Builder<SiteAvro> newBuilder()
SitenewBuilder in interface Site<SiteAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public boolean isDefaultId()
isDefaultId in interface Site<SiteAvro>public String getName()
Sitepublic boolean isDefaultName()
isDefaultName in interface Site<SiteAvro>public String getDomain()
Sitepublic boolean isDefaultDomain()
isDefaultDomain in interface Site<SiteAvro>public List<String> getCat()
Sitepublic boolean isDefaultCat()
isDefaultCat in interface Site<SiteAvro>public List<String> getSectioncat()
SitegetSectioncat in interface Site<SiteAvro>public boolean isDefaultSectioncat()
isDefaultSectioncat in interface Site<SiteAvro>public List<String> getPagecat()
SitegetPagecat in interface Site<SiteAvro>public boolean isDefaultPagecat()
isDefaultPagecat in interface Site<SiteAvro>public String getPage()
Sitepublic boolean isDefaultPage()
isDefaultPage in interface Site<SiteAvro>public int getPrivacypolicy()
SitegetPrivacypolicy in interface Site<SiteAvro>public boolean isDefaultPrivacypolicy()
isDefaultPrivacypolicy in interface Site<SiteAvro>public String getRef()
Sitepublic boolean isDefaultRef()
isDefaultRef in interface Site<SiteAvro>public String getSearch()
Sitepublic boolean isDefaultSearch()
isDefaultSearch in interface Site<SiteAvro>public Publisher<?> getPublisher()
SitegetPublisher in interface Site<SiteAvro>public boolean isDefaultPublisher()
isDefaultPublisher in interface Site<SiteAvro>public Content<?> getContent()
SitegetContent in interface Site<SiteAvro>public boolean isDefaultContent()
isDefaultContent in interface Site<SiteAvro>public String getKeywords()
SitegetKeywords in interface Site<SiteAvro>public boolean isDefaultKeywords()
isDefaultKeywords in interface Site<SiteAvro>public Site.Avro encoded()
public static Site<SiteAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.