|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
helma.scripting.rhino.extensions.FtpObject
public class FtpObject
A FTP-client object that allows to do some FTP from HOP applications. FTP support is far from complete but can easily be extended if more functionality is needed. This uses the NetComponent classes from savarese.org (ex oroinc.com).
Field Summary |
---|
Fields inherited from class org.mozilla.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Method Summary | |
---|---|
boolean |
ascii()
|
boolean |
binary()
|
boolean |
cd(java.lang.String path)
|
static FtpObject |
ftpObjCtor(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
|
java.lang.String |
getClassName()
|
boolean |
getFile(java.lang.String remoteFile,
java.lang.String localFile)
|
java.lang.Object |
getString(java.lang.String remoteFile)
|
static void |
init(org.mozilla.javascript.Scriptable scope)
|
boolean |
lcd(java.lang.String dir)
|
boolean |
login(java.lang.String username,
java.lang.String password)
Login to the FTP server |
boolean |
logout()
Disconnect from FTP server |
boolean |
mkdir(java.lang.String dir)
|
boolean |
putFile(java.lang.String localFile,
java.lang.String remoteFile)
|
boolean |
putString(java.lang.Object obj,
java.lang.String remoteFile)
|
java.lang.String |
toDetailString()
|
java.lang.String |
toString()
|
Methods inherited from class org.mozilla.javascript.ScriptableObject |
---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toDetailString()
public boolean login(java.lang.String username, java.lang.String password)
username
- the user namepassword
- the user's password
public boolean cd(java.lang.String path)
public boolean mkdir(java.lang.String dir)
public boolean lcd(java.lang.String dir)
public boolean putFile(java.lang.String localFile, java.lang.String remoteFile)
public boolean putString(java.lang.Object obj, java.lang.String remoteFile)
public boolean getFile(java.lang.String remoteFile, java.lang.String localFile)
public java.lang.Object getString(java.lang.String remoteFile)
public boolean logout()
public boolean binary()
public boolean ascii()
public static FtpObject ftpObjCtor(org.mozilla.javascript.Context cx, java.lang.Object[] args, org.mozilla.javascript.Function ctorObj, boolean inNewExpr)
public static void init(org.mozilla.javascript.Scriptable scope)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |