|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openxri.resolve.ResolverState
public class ResolverState
This class used to provide encapsulation of the cache state of a Resolver object. Now, it is used to store information about the references processed, URI traversed, etc. during a resolution request. The caching functionality may be revived at a later date.
Nested Class Summary | |
---|---|
class |
ResolverState.ResolverStep
|
Constructor Summary | |
---|---|
ResolverState()
Constructor |
Method Summary | |
---|---|
Cache |
getCache(boolean bTrusted)
Deprecated. |
int |
getNumBytesReceived()
|
int |
getNumRefsFollowed()
|
int |
getNumRequests()
|
int |
getNumSteps()
|
ResolverState.ResolverStep |
getStepAt(int i)
|
long |
getTimeStarted()
|
void |
pushFollowingRef(XRI ref)
|
void |
pushResolved(java.lang.String qxri,
java.lang.String trustType,
java.lang.String xrds,
java.net.URI uri)
|
void |
reset(XRIAuthority oAuth)
Resets the internal XRD cache for this XRIAuthority |
void |
set(XRIAuthority oAuth,
XRD oDesc)
Deprecated. |
void |
setAtAuthority(XRD oDesc)
Deprecated. |
void |
setEqualsAuthority(XRD oDesc)
Sets the XRD for the "=" Authority. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResolverState()
Method Detail |
---|
public long getTimeStarted()
public int getNumRefsFollowed()
public int getNumRequests()
public int getNumBytesReceived()
public ResolverState.ResolverStep getStepAt(int i)
public int getNumSteps()
public void pushResolved(java.lang.String qxri, java.lang.String trustType, java.lang.String xrds, java.net.URI uri)
qxri
- QXRI that was resolvedxrds
- XRDS document receiveduri
- URI queried to resolve the QXRIpublic void pushFollowingRef(XRI ref)
public java.lang.String toString()
toString
in class java.lang.Object
public Cache getCache(boolean bTrusted)
bTrusted
- if true, returns the trusted cache, if false, returns
the regular cache.public void set(XRIAuthority oAuth, XRD oDesc)
oAuth
- The XRIAuthority element to setoDesc
- The descriptor for the final subsegment in the oAuthpublic void reset(XRIAuthority oAuth)
oAuth
- The XRIAuthority element to prunepublic void setAtAuthority(XRD oDesc)
oDesc
- The descriptor for the "@" Authoritypublic void setEqualsAuthority(XRD oDesc)
oDesc
- The descriptor for the "=" Authority
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |