public class DiscoveryResponse extends ResponseMessageType implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
Java class for TAXIIDiscoveryResponseType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="TAXIIDiscoveryResponseType">
<complexContent>
<extension base="{http://taxii.mitre.org/messages/taxii_xml_binding-1.1}ResponseMessageType">
<sequence>
<element name="Service_Instance" type="{http://taxii.mitre.org/messages/taxii_xml_binding-1.1}ServiceInstanceType" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<ServiceInstanceType> |
serviceInstances |
protected Signature |
signature |
inResponseToextendedHeaders, messageId| Constructor and Description |
|---|
DiscoveryResponse()
Default no-arg constructor
|
DiscoveryResponse(ExtendedHeadersType extendedHeaders,
java.lang.String messageId,
java.lang.String inResponseTo,
java.util.List<ServiceInstanceType> serviceInstances,
Signature signature)
Fully-initialising value constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
boolean |
equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy) |
java.util.List<ServiceInstanceType> |
getServiceInstances()
Gets the value of the serviceInstances property.
|
Signature |
getSignature()
An XML Digital Signature scoped to this message.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setSignature(Signature value)
Sets the value of the signature property.
|
DiscoveryResponse |
withExtendedHeaders(ExtendedHeadersType value) |
DiscoveryResponse |
withInResponseTo(java.lang.String value) |
DiscoveryResponse |
withMessageId(java.lang.String value) |
DiscoveryResponse |
withServiceInstances(java.util.Collection<ServiceInstanceType> values) |
DiscoveryResponse |
withServiceInstances(ServiceInstanceType... values) |
DiscoveryResponse |
withSignature(Signature value) |
getInResponseTo, setInResponseTogetExtendedHeaders, getMessageId, setExtendedHeaders, setMessageIdprotected java.util.List<ServiceInstanceType> serviceInstances
protected Signature signature
public DiscoveryResponse()
public DiscoveryResponse(ExtendedHeadersType extendedHeaders, java.lang.String messageId, java.lang.String inResponseTo, java.util.List<ServiceInstanceType> serviceInstances, Signature signature)
public java.util.List<ServiceInstanceType> getServiceInstances()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the serviceInstances property.
For example, to add a new item, do as follows:
getServiceInstances().add(newItem);
Objects of the following type(s) are allowed in the list
ServiceInstanceType
public Signature getSignature()
Signaturepublic void setSignature(Signature value)
value - allowed object is
Signaturepublic boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
equals in interface org.jvnet.jaxb2_commons.lang.Equalsequals in class ResponseMessageTypepublic boolean equals(java.lang.Object object)
equals in class ResponseMessageTypepublic int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCodehashCode in class ResponseMessageTypepublic int hashCode()
hashCode in class ResponseMessageTypepublic DiscoveryResponse withServiceInstances(ServiceInstanceType... values)
public DiscoveryResponse withServiceInstances(java.util.Collection<ServiceInstanceType> values)
public DiscoveryResponse withSignature(Signature value)
public DiscoveryResponse withInResponseTo(java.lang.String value)
withInResponseTo in class ResponseMessageTypepublic DiscoveryResponse withExtendedHeaders(ExtendedHeadersType value)
withExtendedHeaders in class ResponseMessageTypepublic DiscoveryResponse withMessageId(java.lang.String value)
withMessageId in class ResponseMessageType