|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ten60.netkernel.layer1.nkf.impl.NKFResponseImpl
public class NKFResponseImpl
Wrapper around the setting of a response from the invocation of an accessor
| Constructor Summary | |
|---|---|
NKFResponseImpl(IURAspect aAspect,
NKFHelperImpl aHelper)
Creates a new instance of NKFResponseImpl |
|
NKFResponseImpl(IURRepresentation aRep,
NKFHelperImpl aHelper)
Creates a new instance of NKFResponseImpl |
|
| Method Summary | |
|---|---|
void |
addAspect(IURAspect aAspect)
Add an additional aspect into a response. |
void |
setCacheable()
Declares that the response may have merit in being cached. |
void |
setCreationCost(int aCost)
Sets the creation cost of this response over and above the accumulated cost of any subrequests, by default 0. |
void |
setExpired()
Forces the response to be immediately expired so it and any derived results are uncacheable. |
void |
setExpiryPeriod(long aPeriod)
Forces a specific expiry period (in milliseconds) on the response |
void |
setMimeType(java.lang.String aType)
Sets the mimetype of this response. |
void |
setNeverExpire()
Forces the response to never expire so that an dependencies are ignored and the result will be valid forever |
void |
setUsageCost(int aCost)
Sets the usage cost of this response over and above the accumulated cost of any subrequests, by default 0. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NKFResponseImpl(IURRepresentation aRep,
NKFHelperImpl aHelper)
public NKFResponseImpl(IURAspect aAspect,
NKFHelperImpl aHelper)
| Method Detail |
|---|
public void setCacheable()
INKFResponse
setCacheable in interface INKFResponsepublic void setCreationCost(int aCost)
INKFResponse
setCreationCost in interface INKFResponsepublic void setExpired()
INKFResponse
setExpired in interface INKFResponsepublic void setNeverExpire()
INKFResponse
setNeverExpire in interface INKFResponsepublic void setExpiryPeriod(long aPeriod)
INKFResponse
setExpiryPeriod in interface INKFResponseaPeriod - the number of milliseconds for which the response is
validpublic void setMimeType(java.lang.String aType)
INKFResponse
setMimeType in interface INKFResponsepublic void setUsageCost(int aCost)
INKFResponse
setUsageCost in interface INKFResponsepublic void addAspect(IURAspect aAspect)
INKFResponse
addAspect in interface INKFResponse
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||