NetKernel APIs


org.ten60.netkernel.layer1.nkf
Interface INKFRequestReadOnly

All Known Implementing Classes:
NKFRequestReadOnlyImpl

public interface INKFRequestReadOnly

A Read/Only Wrapper around the calling request that initiated the invocation of the accessor


Field Summary
static int RQT_DELETE
          a request to delete a resource
static int RQT_EXISTS
          a request to see if a resource exists
static int RQT_FRAGMENT
          a request to fragment a resource
static int RQT_NEW
          a request to create a new resource
static int RQT_SINK
          a request to set the data for a URI
static int RQT_SOURCE
          a request to get the data for a URI
static int RQT_TRANSREPRESENT
          a request to transpresent data for a resource to a new aspect
static java.lang.String URI_SYSTEM
          the URI for system arguments
 
Method Summary
 boolean argumentExists(java.lang.String aName)
          Return true if the given argument is available on the request
 java.lang.String getActiveType()
          Return the base of the active URI
 java.lang.String getArgument(java.lang.String aName)
          Return the URI of the given argument, null if it doesn't exist.
 java.util.Iterator getArguments()
          Return an iterator over a set of argument names (String)
 IURRepresentation getArgumentValue(java.lang.String aURI)
          Return the value of a by-value argument, null if the argument does not exist.
 java.lang.Class getAspectClass()
          Return the aspect class that the client expects in the response
 java.lang.String getCWU()
          Return the current working URI of the request
 java.lang.String getFragment()
          Return a fragment on the URI, null if none
 int getRequestType()
          Return the request type (one the static final int constants)
 java.lang.String getURI()
          Return the URI of the request
 java.lang.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
 

Field Detail

RQT_SOURCE

static final int RQT_SOURCE
a request to get the data for a URI

See Also:
Constant Field Values

RQT_SINK

static final int RQT_SINK
a request to set the data for a URI

See Also:
Constant Field Values

RQT_EXISTS

static final int RQT_EXISTS
a request to see if a resource exists

See Also:
Constant Field Values

RQT_DELETE

static final int RQT_DELETE
a request to delete a resource

See Also:
Constant Field Values

RQT_NEW

static final int RQT_NEW
a request to create a new resource

See Also:
Constant Field Values

RQT_TRANSREPRESENT

static final int RQT_TRANSREPRESENT
a request to transpresent data for a resource to a new aspect

See Also:
Constant Field Values

RQT_FRAGMENT

static final int RQT_FRAGMENT
a request to fragment a resource

See Also:
Constant Field Values

URI_SYSTEM

static final java.lang.String URI_SYSTEM
the URI for system arguments

Method Detail

getRequestType

int getRequestType()
Return the request type (one the static final int constants)


getURI

java.lang.String getURI()
Return the URI of the request


getFragment

java.lang.String getFragment()
Return a fragment on the URI, null if none


getURIWithoutFragment

java.lang.String getURIWithoutFragment()
Return the URI of the request without the fragment (if any)


getCWU

java.lang.String getCWU()
Return the current working URI of the request


getAspectClass

java.lang.Class getAspectClass()
Return the aspect class that the client expects in the response


isActiveURI

boolean isActiveURI()
Return true if the URI is in the form of an active URI with named arguments


getActiveType

java.lang.String getActiveType()
Return the base of the active URI


getArguments

java.util.Iterator getArguments()
Return an iterator over a set of argument names (String)


argumentExists

boolean argumentExists(java.lang.String aName)
Return true if the given argument is available on the request

Parameters:
aName -

getArgument

java.lang.String getArgument(java.lang.String aName)
Return the URI of the given argument, null if it doesn't exist.

Parameters:
aName -

getArgumentValue

IURRepresentation getArgumentValue(java.lang.String aURI)
Return the value of a by-value argument, null if the argument does not exist.

Parameters:
aURI -

NetKernel APIs


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