NetKernel APIs


org.ten60.netkernel.layer1.meta
Class AccessorMeta

java.lang.Object
  extended bycom.ten60.netkernel.urii.meta.MetaImpl
      extended byorg.ten60.netkernel.layer1.meta.MetaImpl
          extended byorg.ten60.netkernel.layer1.meta.AccessorMeta
All Implemented Interfaces:
IURAccessorMeta, IURMeta

public class AccessorMeta
extends MetaImpl
implements IURAccessorMeta

An implementation of IURAccessorMeta for active accessors, i.e. accessors that only implement the URRequest.RQT_SOURCE request.


Field Summary
 
Fields inherited from interface com.ten60.netkernel.urii.accessor.IURAccessorMeta
MIME_TYPE
 
Constructor Summary
AccessorMeta(int aCost, boolean aIsThreadSafe, int aRequestTypes)
          Creates a new instance of ActiveAccessorMeta
 
Method Summary
 boolean isContextSensitive()
          accessors are never context sensitive
 boolean isIntermediate()
          accessors are never intermediate
 boolean isThreadSafe()
          returns true if the accessor is thread safe
 void setThreadSafe(boolean aIsThreadSafe)
           
 boolean supportsRequestType(int aRequestType)
          returns true if the request type is RRequest.RQT_SOURCE
 
Methods inherited from class com.ten60.netkernel.urii.meta.MetaImpl
getContextSensitivity, getCreationCost, getMimeType, getPessimisticExpiryTime, getUsageCost, incrementCreationCost, isExpired, setMimeType, setPessimisticExpiryTime, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ten60.netkernel.urii.IURMeta
getContextSensitivity, getCreationCost, getMimeType, getPessimisticExpiryTime, getUsageCost, isExpired
 

Constructor Detail

AccessorMeta

public AccessorMeta(int aCost,
                    boolean aIsThreadSafe,
                    int aRequestTypes)
Creates a new instance of ActiveAccessorMeta

Method Detail

setThreadSafe

public void setThreadSafe(boolean aIsThreadSafe)

supportsRequestType

public boolean supportsRequestType(int aRequestType)
returns true if the request type is RRequest.RQT_SOURCE

Specified by:
supportsRequestType in interface IURAccessorMeta
See Also:
URRequest

isThreadSafe

public boolean isThreadSafe()
returns true if the accessor is thread safe

Specified by:
isThreadSafe in interface IURAccessorMeta

isIntermediate

public boolean isIntermediate()
accessors are never intermediate

Specified by:
isIntermediate in interface IURMeta
Overrides:
isIntermediate in class MetaImpl

isContextSensitive

public boolean isContextSensitive()
accessors are never context sensitive


NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.