|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
nesstar.rdf.RDFObject
nesstar.api.MethodInvocation
public class MethodInvocation
A remote method invocation. A method invocation can be represented in a variety of ways:
| Field Summary | |
|---|---|
static String |
CHALLENGE
To mark that the response is an authentication challenge for the indicated operation |
static String |
DATE_FORMAT
date format accepted by the DDI |
static SimpleDateFormat |
dateFormat
|
static String |
METHOD_KEY
The key used to identyfy HTTP method calls |
static String |
OBJECT_KEY
The key used to identyfy object calls @bug hack: it is based on the domain name for the object in the server |
static String |
ON_ACCESS_CANCELLED
param indicates the URL to be returned if access is granted |
static String |
ON_ACCESS_CHALLENGED
param indicates the URL to be returned if a challeng is returned |
static String |
ON_ACCESS_GRANTED
param indicates the URL to be returned if access is granted |
static String |
ON_ACCESS_REFUSED
param indicates the URL to be returned if access is refused |
static String |
ON_ERROR
param indicates the URL to be returned if result is error |
static String |
ON_NULL_RESULT
param indicates the URL to be returned if result is null |
static String |
ON_RESULT
param indicates the URL to be returned if result is not null |
static String |
OP
|
static String |
OPID
The name of the parameter that indicates the ID of the operation that was suspended by the ACU and that we are trying to get to execute by executing the current document |
static String |
SET_JSESSION
The name used for jsessions |
| Fields inherited from class nesstar.rdf.RDFObject |
|---|
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP |
| Constructor Summary | |
|---|---|
MethodInvocation(NSMethod method)
Constructor for the MethodInvocation object |
|
MethodInvocation(NSMethod method,
RDFObject target)
Constructor for the MethodInvocation object |
|
MethodInvocation(NSMethod method,
RDFObject target,
String sb)
Constructor for the MethodInvocation object |
|
MethodInvocation(NSMethod method,
String sb)
Constructor for the MethodInvocation object |
|
MethodInvocation(RDFObject target,
NSMethod method,
Parameters parms)
Constructor for the MethodInvocation object |
|
MethodInvocation(RDFObject target,
NSMethod method,
Parameters parms,
String sb)
Constructor for the MethodInvocation object |
|
| Method Summary | |
|---|---|
static void |
adaptiveSetObjField(Object obj,
String name,
Object value)
Set the property of an object. |
static URL |
addGETFirstLine(URL url,
String param,
Object value)
Adds a feature to the GETFirstLine attribute of the MethodInvocation class |
static URL |
addGETLine(URL url,
String param,
Object value)
Adds a feature to the GETLine attribute of the MethodInvocation class |
static URL |
addOnAccessValues(URL url,
Object onAccessGranted,
Object onAccessRefused,
Object onAccessCancelled,
Object onAccessChallenged)
Adds a feature to the OnAccessValues attribute of the MethodInvocation class |
static String |
checkFormat(String value)
|
static void |
dbg(String msg)
Method |
static MIMEObject |
execute(BasicExecutorLog executor)
Method |
static MIMEObject |
execute(Bookmark bookmark)
Method |
static MIMEObject |
execute(Bookmark bookmark,
BasicExecutorLog executor)
Execute the operation encoded in the 'bookmark' using the 'executor'. |
static MIMEObject |
executeSuspendedOp(URL url,
int timeoutInSecs)
Get the result of the given op, already existing on the server and currently suspended |
static MIMEObject |
executeSuspendedOp(URL url,
int timeoutInSecs,
Vector headers)
Method |
static String |
formatDate(Date value)
|
static String |
getAccessorName(String prefix,
String name)
Gets the accessorName attribute of the MethodInvocation class |
Bookmark |
getBookmark()
Gets the bookmark attribute of the MethodInvocation object |
static DateFormat |
getDateFormat()
|
static String |
getFormLine(String type,
String name,
Object value)
Gets the formLine attribute of the MethodInvocation class |
static String |
getJSessionCode(String id)
|
static String |
GETLine(String name,
Object value)
Method |
static Method |
getMethod(Object obj,
String name)
Find a method of object with a given name |
static Method |
getMethod(Object obj,
String name,
Object value)
Find a method of object with name 'name' that will accept the given value @bug this will fail if the interface needed by the Method is not directly implemented by the object (ex: Collection) |
static NSMethod |
getMethod(RDFObject obj,
String shortMethodName)
Gets the method attribute of the MethodInvocation class |
static NSMethod |
getMethod(RDFObject obj,
URL methodName)
Gets the method attribute of the MethodInvocation class |
static URL |
getMethodExecute(URL opID)
|
static Object |
getObjField(Object obj,
String name)
Gets the objField attribute of the MethodInvocation class |
static String |
getObjID(String url)
|
static Bookmark |
getOpBookmark(RDFObject obj,
NSMethod method,
Parameters parms)
Gets the opBookmark attribute of the MethodInvocation class |
static Bookmark |
getOpBookmark(RDFObject obj,
URL methodName,
Parameters params)
Gets the opBookmark attribute of the MethodInvocation class |
Vector |
getParameters()
Gets the parameters attribute of the MethodInvocation object |
static MIMEObject |
httpExecute(URL url,
int timeout)
Execute the invocation through HTTP |
static MIMEObject |
httpExecute(URL url,
int timeout,
Vector headers)
Execute the invocation through HTTP |
static boolean |
isObjectInvocation(URL url)
check if url is an invocation on an object @bug it is based on a hack |
static Date |
parseToDate(String value)
|
static void |
printInterfaces(Object obj)
|
static void |
setCollectionField(Object obj,
String name,
Object value)
Sets the collectionField attribute of the MethodInvocation class |
static void |
setObjField(Object obj,
String name,
Object value)
Set the property of an object |
void |
setParameterValue(NSParameter parameter,
Object value)
Sets the parameterValue attribute of the MethodInvocation object |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CHALLENGE
public static final String OBJECT_KEY
public static final String METHOD_KEY
public static final String OPID
public static final String DATE_FORMAT
public static SimpleDateFormat dateFormat
public static final String ON_ACCESS_CANCELLED
public static final String ON_ACCESS_GRANTED
public static final String ON_ACCESS_REFUSED
public static final String ON_ACCESS_CHALLENGED
public static final String ON_NULL_RESULT
public static final String ON_RESULT
public static final String ON_ERROR
public static final String SET_JSESSION
public static final String OP
| Constructor Detail |
|---|
public MethodInvocation(NSMethod method)
throws Exception
method -
Exception
public MethodInvocation(NSMethod method,
String sb)
throws Exception
method - sb -
Exception
public MethodInvocation(NSMethod method,
RDFObject target)
throws Exception
method - target -
Exception
public MethodInvocation(NSMethod method,
RDFObject target,
String sb)
throws Exception
method - target - sb -
Exception
public MethodInvocation(RDFObject target,
NSMethod method,
Parameters parms,
String sb)
throws Exception
target - method - parms - sb -
Exception
public MethodInvocation(RDFObject target,
NSMethod method,
Parameters parms)
throws Exception
target - method - parms -
Exception| Method Detail |
|---|
public static void dbg(String msg)
msg -
public void setParameterValue(NSParameter parameter,
Object value)
throws Exception
parameter - The new parameterValue valuevalue - The new parameterValue value
Exception
public static void setObjField(Object obj,
String name,
Object value)
throws Exception
obj - The objectname - The name of the property, e.g. "label"value - The value
Exception
public static void adaptiveSetObjField(Object obj,
String name,
Object value)
throws Exception
obj - The objectname - The name of the property, e.g. "label"value - The value
Exception
public static void setCollectionField(Object obj,
String name,
Object value)
throws Exception
obj - The new collectionField valuename - The new collectionField valuevalue - The new collectionField value
Exceptionpublic static String getJSessionCode(String id)
public static String getObjID(String url)
throws Exception
url -
Exception
public Vector getParameters()
throws Exception
Exception
public static NSMethod getMethod(RDFObject obj,
URL methodName)
throws Exception
obj - methodName -
Exception
public static NSMethod getMethod(RDFObject obj,
String shortMethodName)
throws Exception
obj - shortMethodName -
Exception
public static Bookmark getOpBookmark(RDFObject obj,
URL methodName,
Parameters params)
throws Exception
obj - methodName - params -
Exception
public static Bookmark getOpBookmark(RDFObject obj,
NSMethod method,
Parameters parms)
throws Exception
obj - method - parms -
Exception
public static String GETLine(String name,
Object value)
name - value -
public static String getFormLine(String type,
String name,
Object value)
type - name - value -
public Bookmark getBookmark()
throws Exception
Exception
public static URL getMethodExecute(URL opID)
throws Exception
opID -
Exceptionpublic static boolean isObjectInvocation(URL url)
public static Method getMethod(Object obj,
String name,
Object value)
throws NoSuchMethodException
obj - name - value -
NoSuchMethodException
public static Method getMethod(Object obj,
String name)
throws NoSuchMethodException
obj - the objectname - the name of the method
NoSuchMethodException
public static String getAccessorName(String prefix,
String name)
prefix - name -
public static Object getObjField(Object obj,
String name)
throws Exception
obj - name -
Exceptionpublic static DateFormat getDateFormat()
public static Date parseToDate(String value)
throws Exception
value -
Exception
public static String checkFormat(String value)
throws Exception
Exception
public static String formatDate(Date value)
throws Exception
value -
Exception
public static URL addGETLine(URL url,
String param,
Object value)
throws MalformedURLException
url - The feature to be added to the GETLine attributeparam - The feature to be added to the GETLine attributevalue - The feature to be added to the GETLine attribute
MalformedURLException
public static URL addGETFirstLine(URL url,
String param,
Object value)
throws MalformedURLException
url - The feature to be added to the GETFirstLine attributeparam - The feature to be added to the GETFirstLine attributevalue - The feature to be added to the GETFirstLine attribute
MalformedURLException
public static URL addOnAccessValues(URL url,
Object onAccessGranted,
Object onAccessRefused,
Object onAccessCancelled,
Object onAccessChallenged)
throws MalformedURLException
url - The feature to be added to the OnAccessValues attributeonAccessGranted - The feature to be added to the OnAccessValues attributeonAccessRefused - The feature to be added to the OnAccessValues attributeonAccessCancelled - The feature to be added to the OnAccessValues attributeonAccessChallenged - The feature to be added to the OnAccessValues attribute
MalformedURLException
public static MIMEObject execute(BasicExecutorLog executor)
throws Exception
executor -
Exception
public static MIMEObject execute(Bookmark bookmark,
BasicExecutorLog executor)
throws Exception
bookmark - executor -
Exception
public static MIMEObject execute(Bookmark bookmark)
throws Exception
bookmark -
Exception
public static MIMEObject httpExecute(URL url,
int timeout)
throws Exception
url - timeout -
Exception
| it handles all parameters needing POST_FORM as files!! |
public static MIMEObject httpExecute(URL url,
int timeout,
Vector headers)
throws Exception
url - timeout - headers -
Exception
public static MIMEObject executeSuspendedOp(URL url,
int timeoutInSecs)
throws Exception
url - timeoutInSecs -
Exception
public static MIMEObject executeSuspendedOp(URL url,
int timeoutInSecs,
Vector headers)
throws Exception
url - timeoutInSecs - headers -
Exceptionpublic static void printInterfaces(Object obj)
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||