| java.lang.Object org.openlaszlo.data.DataSource org.openlaszlo.data.JavaDataSource
JavaDataSource | public class JavaDataSource extends DataSource (Code) | | Data source for java direct calls.
|
Inner Class :public class EncoderData extends Data | |
Inner Class :public class ObjectData extends Data | |
Method Summary | |
public static void | clearLoadInfo() | Data | compileFault(Throwable e, String runtime, int swfversion) Compile fault exception message. | Data | compileFault(String mesg, String runtime, int swfversion) | Data | compileFault(String mesg, Throwable e, String runtime, int swfversion) Compile fault response. | Data | createInstancePrototype(String cname, String oname, int scope, Class[] argClasses, Object[] argValues, HttpServletRequest req, int swfversion) | Data | destroyInstance(String oname, int scope, HttpServletRequest req, int swfversion) removes client swf object from session attribute or webapp attribute. | static boolean | doXML(int options, int mask) | public Data | execute(HttpServletRequest req, HttpServletResponse res, Class targetClass, int scope, String objectReturnType, int swfversion, String methodName, Vector params) This code borrows from Apache's XMLRPC
org.apache.xmlrpc.Invoker.execute() method. | Class | getClass(String cname) | String | getClassName(String url) | public Data | getData(String app, HttpServletRequest req, HttpServletResponse res, long lastModifiedTime) Sends system information to client. | Data | getInstancePrototype(String cname, String oname, int scope, HttpServletRequest req, int swfversion) Return prototype for session and webapp if object was
previously created. | Object | getInvokeTarget(String oname, int scope, HttpServletRequest req) | Object | getJavaObject(HttpSession session, int scope, String oname) | Method | getMethod(Class cl, String methodName, Class[] params) Like Class.getMethod() except we allow params that are derived. | synchronized Data | getPrototype(String cname, int scope, String runtime, int swfversion) Get client prototype. | int | getScope(HttpServletRequest req) | String | getScopeName(int scope) | Object | getServerInstance(String classname, Class[] argClasses, Object[] argValues) Create instance by calling constructor. | Data | getStaticPrototype(String cname, String runtime, int swfversion) for scope == SCOPE_NONE (static objects). | synchronized ObjectData | getVoid(String runtime) | public boolean | isClassOk(String cname, String path) Check to see if class is allowed. | public String | name() | boolean | paramTypesMatch(Class[] pt1, Class[] pt2) pt1 and pt2 are assumed not to be null. | void | removeJavaObject(HttpSession session, int scope, String oname) Remove a java object from session or webapp context. | void | setJavaObject(HttpSession session, int scope, String oname, Object val) Add a java object to a session or webapp context. | static void | toXML(StringBuffer sb, String nodeName, VersionMap m, ThreadSafeCounter objects, ThreadSafeCounter sessions) Helper function for toXML(). | public static synchronized String | toXML(int options) XML string with relevant statistics about JavaDataSource. |
DEFAULT_VOID | ObjectData DEFAULT_VOID(Code) | | |
LOAD_INSTANCE_CREATE_PROTO | final public static int LOAD_INSTANCE_CREATE_PROTO(Code) | | |
LOAD_INSTANCE_DESTROY_PROTO | final public static int LOAD_INSTANCE_DESTROY_PROTO(Code) | | |
LOAD_INSTANCE_GET_INVOKE_TARGET | final public static int LOAD_INSTANCE_GET_INVOKE_TARGET(Code) | | |
LOAD_INSTANCE_GET_PROTO | final public static int LOAD_INSTANCE_GET_PROTO(Code) | | |
LOAD_INVOKE | final public static int LOAD_INVOKE(Code) | | |
LOAD_RETURN_OBJECT_ENCODE | final public static int LOAD_RETURN_OBJECT_ENCODE(Code) | | |
LOAD_STATIC_GET_PROTO | final public static int LOAD_STATIC_GET_PROTO(Code) | | |
SCOPE_NONE | final static int SCOPE_NONE(Code) | | |
SCOPE_SESSION | final static int SCOPE_SESSION(Code) | | |
SCOPE_UNKNOWN | final static int SCOPE_UNKNOWN(Code) | | |
SCOPE_WEBAPP | final static int SCOPE_WEBAPP(Code) | | |
mInstanceGetInvokeTargetLoad | public static LoadCount mInstanceGetInvokeTargetLoad(Code) | | |
mInstanceProtoCreateLoad | public static LoadCount mInstanceProtoCreateLoad(Code) | | |
mInstanceProtoDestroyLoad | public static LoadCount mInstanceProtoDestroyLoad(Code) | | |
mLastCleared | static long mLastCleared(Code) | | |
mReturnObjectEncodeLoad | public static LoadCount mReturnObjectEncodeLoad(Code) | | |
JavaDataSource | public JavaDataSource()(Code) | | |
clearLoadInfo | public static void clearLoadInfo()(Code) | | |
destroyInstance | Data destroyInstance(String oname, int scope, HttpServletRequest req, int swfversion)(Code) | | removes client swf object from session attribute or webapp attribute.
Note: swfversion not used but may be if we have different versions of
object cached.
|
doXML | static boolean doXML(int options, int mask)(Code) | | |
getInstancePrototype | Data getInstancePrototype(String cname, String oname, int scope, HttpServletRequest req, int swfversion)(Code) | | Return prototype for session and webapp if object was
previously created.
|
getPrototype | synchronized Data getPrototype(String cname, int scope, String runtime, int swfversion)(Code) | | Get client prototype.
|
getStaticPrototype | Data getStaticPrototype(String cname, String runtime, int swfversion)(Code) | | for scope == SCOPE_NONE (static objects).
|
getVoid | synchronized ObjectData getVoid(String runtime)(Code) | | |
isClassOk | public boolean isClassOk(String cname, String path)(Code) | | Check to see if class is allowed.
|
name | public String name()(Code) | | unique name of this data source |
paramTypesMatch | boolean paramTypesMatch(Class[] pt1, Class[] pt2)(Code) | | pt1 and pt2 are assumed not to be null. If param types are 0, array length
is 0.
|
removeJavaObject | void removeJavaObject(HttpSession session, int scope, String oname)(Code) | | Remove a java object from session or webapp context.
|
setJavaObject | void setJavaObject(HttpSession session, int scope, String oname, Object val)(Code) | | Add a java object to a session or webapp context.
|
toXML | public static synchronized String toXML(int options)(Code) | | XML string with relevant statistics about JavaDataSource.
|
Methods inherited from org.openlaszlo.data.DataSource | final public void get(String app, HttpServletRequest req, HttpServletResponse res) throws DataSourceException, IOException(Code)(Java Doc) final public void getAsSWF(String app, HttpServletRequest req, HttpServletResponse res, Converter converter) throws DataSourceException, ConversionException, IOException(Code)(Java Doc) abstract public Data getData(String app, HttpServletRequest req, HttpServletResponse res, long lastModifiedTime) throws InterruptedIOException, IOException, DataSourceException(Code)(Java Doc) final public static HashMap getQueryString(String url)(Code)(Java Doc) final public static String getURL(HttpServletRequest req, String surl) throws MalformedURLException(Code)(Java Doc) public static String getURL(HttpServletRequest req) throws MalformedURLException(Code)(Java Doc) final public static boolean isClientCacheable(HttpServletRequest req)(Code)(Java Doc) abstract public String name()(Code)(Java Doc)
|
|
|