public class AdResponse extends Object implements Serializable
The response can either be a VAST Inline, which contains an actual creative from an ad server, a VAST Redirect, which contains a redirect URL that should be pinged via another VAST ad request, or a VMAP response.
| Constructor and Description |
|---|
AdResponse() |
AdResponse(String requestUrl,
Boolean isVmapRequest,
String responseBody,
AdResponse[] redirectResponses,
SamError samError,
SamError[] adErrors) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SamError[] |
getAdErrors()
Gets the adErrors value for this AdResponse.
|
SamError |
getAdErrors(int i) |
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
Boolean |
getIsVmapRequest()
Gets the isVmapRequest value for this AdResponse.
|
AdResponse[] |
getRedirectResponses()
Gets the redirectResponses value for this AdResponse.
|
AdResponse |
getRedirectResponses(int i) |
String |
getRequestUrl()
Gets the requestUrl value for this AdResponse.
|
String |
getResponseBody()
Gets the responseBody value for this AdResponse.
|
SamError |
getSamError()
Gets the samError value for this AdResponse.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setAdErrors(int i,
SamError _value) |
void |
setAdErrors(SamError[] adErrors)
Sets the adErrors value for this AdResponse.
|
void |
setIsVmapRequest(Boolean isVmapRequest)
Sets the isVmapRequest value for this AdResponse.
|
void |
setRedirectResponses(AdResponse[] redirectResponses)
Sets the redirectResponses value for this AdResponse.
|
void |
setRedirectResponses(int i,
AdResponse _value) |
void |
setRequestUrl(String requestUrl)
Sets the requestUrl value for this AdResponse.
|
void |
setResponseBody(String responseBody)
Sets the responseBody value for this AdResponse.
|
void |
setSamError(SamError samError)
Sets the samError value for this AdResponse.
|
String |
toString() |
public String getRequestUrl()
public void setRequestUrl(String requestUrl)
requestUrl - * The ad tag URL.public Boolean getIsVmapRequest()
public void setIsVmapRequest(Boolean isVmapRequest)
isVmapRequest - * Whether the request associated with this ad response is VMAP.public String getResponseBody()
public void setResponseBody(String responseBody)
responseBody - * The contents of the response body.public AdResponse[] getRedirectResponses()
public void setRedirectResponses(AdResponse[] redirectResponses)
redirectResponses - * The subsequent ad responses that were triggered due to a VAST
redirect in this ad response.public AdResponse getRedirectResponses(int i)
public void setRedirectResponses(int i,
AdResponse _value)
public SamError getSamError()
public void setSamError(SamError samError)
samError - * Information about any generic error that occurred.public SamError[] getAdErrors()
public void setAdErrors(SamError[] adErrors)
adErrors - * Information about any errors that occurred while parsing the
ad response.public SamError getAdErrors(int i)
public void setAdErrors(int i,
SamError _value)
public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2026. All rights reserved.