NetKernel APIs


org.ten60.netkernel.layer1.nkf.impl
Class NKFRequestReadOnlyImpl

java.lang.Object
  extended byorg.ten60.netkernel.layer1.nkf.impl.NKFRequestReadOnlyImpl
All Implemented Interfaces:
INKFRequestReadOnly

public class NKFRequestReadOnlyImpl
extends Object
implements INKFRequestReadOnly

Wrapper around the request that initiated the invocation of the accessor


Field Summary
 
Fields inherited from interface org.ten60.netkernel.layer1.nkf.INKFRequestReadOnly
RQT_DELETE, RQT_EXISTS, RQT_FRAGMENT, RQT_NEW, RQT_SINK, RQT_SOURCE, RQT_TRANSREPRESENT, URI_SYSTEM
 
Constructor Summary
NKFRequestReadOnlyImpl(URRequest aRequest)
          Creates a new instance of NKFRequestReadOnlyImpl
 
Method Summary
 boolean argumentExists(String aName)
          Return true if the given argument is available on the request
 String getActiveType()
          Return the base of the active URI
 String getArgument(String aName)
          Return the URI of the given argument, null if it doesn't exist.
 Iterator getArguments()
          Return an iterator over a set of argument names (String)
 IURRepresentation getArgumentValue(String aURI)
          Return the value of a by-value argument, null if the argument does not exist.
 Class getAspectClass()
          Return the aspect class that the client expects in the response
 String getCWU()
          Return the current working URI of the request
 String getFragment()
          Return a fragment on the URI, null if none
 int getRequestType()
          Return the request type (one the static final int constants)
 String getURI()
          Return the URI of the request
 String getURIWithoutFragment()
          Return the URI of the request without the fragment (if any)
 boolean isActiveURI()
          Return true if the URI is in the form of an active URI with named arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NKFRequestReadOnlyImpl

public NKFRequestReadOnlyImpl(URRequest aRequest)
Creates a new instance of NKFRequestReadOnlyImpl

Method Detail

getAspectClass

public Class getAspectClass()
Description copied from interface: INKFRequestReadOnly
Return the aspect class that the client expects in the response

Specified by:
getAspectClass in interface INKFRequestReadOnly

getCWU

public String getCWU()
Description copied from interface: INKFRequestReadOnly
Return the current working URI of the request

Specified by:
getCWU in interface INKFRequestReadOnly

getRequestType

public int getRequestType()
Description copied from interface: INKFRequestReadOnly
Return the request type (one the static final int constants)

Specified by:
getRequestType in interface INKFRequestReadOnly

getURI

public String getURI()
Description copied from interface: INKFRequestReadOnly
Return the URI of the request

Specified by:
getURI in interface INKFRequestReadOnly

getFragment

public String getFragment()
Description copied from interface: INKFRequestReadOnly
Return a fragment on the URI, null if none

Specified by:
getFragment in interface INKFRequestReadOnly

getURIWithoutFragment

public String getURIWithoutFragment()
Description copied from interface: INKFRequestReadOnly
Return the URI of the request without the fragment (if any)

Specified by:
getURIWithoutFragment in interface INKFRequestReadOnly

isActiveURI

public boolean isActiveURI()
Description copied from interface: INKFRequestReadOnly
Return true if the URI is in the form of an active URI with named arguments

Specified by:
isActiveURI in interface INKFRequestReadOnly

getActiveType

public String getActiveType()
Description copied from interface: INKFRequestReadOnly
Return the base of the active URI

Specified by:
getActiveType in interface INKFRequestReadOnly

argumentExists

public boolean argumentExists(String aName)
Description copied from interface: INKFRequestReadOnly
Return true if the given argument is available on the request

Specified by:
argumentExists in interface INKFRequestReadOnly
Parameters:
aName -

getArgument

public String getArgument(String aName)
Description copied from interface: INKFRequestReadOnly
Return the URI of the given argument, null if it doesn't exist.

Specified by:
getArgument in interface INKFRequestReadOnly
Parameters:
aName -

getArguments

public Iterator getArguments()
Description copied from interface: INKFRequestReadOnly
Return an iterator over a set of argument names (String)

Specified by:
getArguments in interface INKFRequestReadOnly

getArgumentValue

public IURRepresentation getArgumentValue(String aURI)
Description copied from interface: INKFRequestReadOnly
Return the value of a by-value argument, null if the argument does not exist.

Specified by:
getArgumentValue in interface INKFRequestReadOnly
Parameters:
aURI -

NetKernel APIs


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