Package org.minidns.hla
Class ResolverResult<D extends Data>
- java.lang.Object
-
- org.minidns.hla.ResolverResult<D>
-
- Direct Known Subclasses:
SrvResolverResult
public class ResolverResult<D extends Data> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected DnsMessage
answer
protected Question
question
protected DnsQueryResult
result
protected java.util.Set<DnssecUnverifiedReason>
unverifiedReasons
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<D>
getAnswers()
java.util.Set<D>
getAnswersOrEmptySet()
DnsQueryResult
getDnsQueryResult()
DnssecResultNotAuthenticException
getDnssecResultNotAuthenticException()
Question
getQuestion()
DnsMessage
getRawAnswer()
Get the raw answer DNS message we received.ResolutionUnsuccessfulException
getResolutionUnsuccessfulException()
DnsMessage.RESPONSE_CODE
getResponseCode()
java.util.Set<DnssecUnverifiedReason>
getUnverifiedReasons()
Get the reasons the result could not be verified if any exists.boolean
isAuthenticData()
void
throwIfErrorResponse()
protected void
throwIseIfErrorResponse()
java.lang.String
toString()
boolean
wasSuccessful()
-
-
-
Field Detail
-
unverifiedReasons
protected final java.util.Set<DnssecUnverifiedReason> unverifiedReasons
-
answer
protected final DnsMessage answer
-
result
protected final DnsQueryResult result
-
-
Method Detail
-
wasSuccessful
public boolean wasSuccessful()
-
getAnswers
public java.util.Set<D> getAnswers()
-
getAnswersOrEmptySet
public java.util.Set<D> getAnswersOrEmptySet()
-
getResponseCode
public DnsMessage.RESPONSE_CODE getResponseCode()
-
isAuthenticData
public boolean isAuthenticData()
-
getUnverifiedReasons
public java.util.Set<DnssecUnverifiedReason> getUnverifiedReasons()
Get the reasons the result could not be verified if any exists.- Returns:
- The reasons the result could not be verified or
null
.
-
getQuestion
public Question getQuestion()
-
throwIfErrorResponse
public void throwIfErrorResponse() throws ResolutionUnsuccessfulException
- Throws:
ResolutionUnsuccessfulException
-
getResolutionUnsuccessfulException
public ResolutionUnsuccessfulException getResolutionUnsuccessfulException()
-
getDnssecResultNotAuthenticException
public DnssecResultNotAuthenticException getDnssecResultNotAuthenticException()
-
getRawAnswer
public DnsMessage getRawAnswer()
Get the raw answer DNS message we received. This is likely not what you want, trygetAnswers()
instead.- Returns:
- the raw answer DNS Message.
- See Also:
getAnswers()
-
getDnsQueryResult
public DnsQueryResult getDnsQueryResult()
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
throwIseIfErrorResponse
protected void throwIseIfErrorResponse()
-
-