Scriptable getScriptableObject() { if (_scriptable == null) { _scriptable = new Scriptable(); _scriptable.setScriptEngine( getResponse().getScriptableObject().getScriptEngine( _scriptable ) ); } return _scriptable; }
public String getCookie() { return emptyIfNull( getResponse().getCookieHeader() ); }
public String jsGet_cookie() { return getDelegate().getCookie(); }
public String jsGet_cookie() { return getDelegate().getCookie(); }
public Object jsFunction_getElementsByName( String name ) { return toElementArray( getDelegate().getElementsByName( name ) ); }
public String getCookie() { return emptyIfNull( getResponse().getCookieHeader() ); }
public String jsGet_cookie() { return getDelegate().getCookie(); }
public Object jsFunction_getElementsByName( String name ) { return toElementArray( getDelegate().getElementsByName( name ) ); }
public Scriptable jsGet_forms() throws SAXException { if (_forms == null) _forms = toElementArray( getDelegate().getForms() ); return _forms; }
public Object jsFunction_getElementById( String id ) { ScriptableDelegate elementWithID = getDelegate().getElementWithID( id ); return elementWithID == null ? null : toScriptable( elementWithID ); }
public Object jsFunction_getElementsByTagName( String name ) { return toElementArray( getDelegate().getElementsByTagName( name ) ); }
public Scriptable jsGet_forms() throws SAXException { if (_forms == null) _forms = toElementArray( getDelegate().getForms() ); return _forms; }
public Scriptable jsGet_images() throws SAXException{ if (_images == null) _images = toElementArray( getDelegate().getImages() ); return _images; }
public Object jsFunction_getElementById( String id ) { ScriptableDelegate elementWithID = getDelegate().getElementWithID( id ); return elementWithID == null ? null : toScriptable( elementWithID ); }
public String getCookie() { return emptyIfNull( getResponse().getCookieHeader() ); }
public Scriptable jsGet_forms() throws SAXException { if (_forms == null) _forms = toElementArray( getDelegate().getForms() ); return _forms; }
public Scriptable jsGet_links() throws SAXException { if (_links == null) _links = toElementArray( getDelegate().getLinks() ); return _links; }
public Object jsFunction_getElementsByTagName( String name ) { return toElementArray( getDelegate().getElementsByTagName( name ) ); }
public Object jsFunction_getElementsByName( String name ) { return toElementArray( getDelegate().getElementsByName( name ) ); }
/** * get the Object with the given propertyName * @param propertyName - the name of the property */ public Object get( String propertyName ) { NamedDelegate delegate = getNamedItem( getForms(), propertyName ); if (delegate != null) return delegate; delegate = getNamedItem( getLinks(), propertyName ); if (delegate != null) return delegate; delegate = getNamedItem( getImages(), propertyName ); if (delegate != null) return delegate; return null; }