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 String URI_SYSTEM
          the URI for system arguments
 
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
 

Field Detail

RQT_SOURCE

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

See Also:
Constant Field Values

RQT_SINK

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

See Also:
Constant Field Values

RQT_EXISTS

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

See Also:
Constant Field Values

RQT_DELETE

public static final int RQT_DELETE
a request to delete a resource

See Also:
Constant Field Values

RQT_NEW

public static final int RQT_NEW
a request to create a new resource

See Also:
Constant Field Values

RQT_TRANSREPRESENT

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

See Also:
Constant Field Values

RQT_FRAGMENT

public static final int RQT_FRAGMENT
a request to fragment a resource

See Also:
Constant Field Values

URI_SYSTEM

public static final String URI_SYSTEM
the URI for system arguments

Method Detail

getRequestType

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


getURI

public String getURI()
Return the URI of the request


getFragment

public String getFragment()
Return a fragment on the URI, null if none


getURIWithoutFragment

public String getURIWithoutFragment()
Return the URI of the request without the fragment (if any)


getCWU

public String getCWU()
Return the current working URI of the request


getAspectClass

public Class getAspectClass()
Return the aspect class that the client expects in the response


isActiveURI

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


getActiveType

public String getActiveType()
Return the base of the active URI


getArguments

public Iterator getArguments()
Return an iterator over a set of argument names (String)


argumentExists

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

Parameters:
aName -

getArgument

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

Parameters:
aName -

getArgumentValue

public IURRepresentation getArgumentValue(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.