public void jsSet_cookie( String cookieSpec ) { final int equalsIndex = cookieSpec.indexOf( '=' ); if (equalsIndex <0) return; int endIndex = cookieSpec.indexOf( ";", equalsIndex ); if (endIndex < 0) endIndex = cookieSpec.length(); String name = cookieSpec.substring( 0, equalsIndex ); String value = cookieSpec.substring( equalsIndex+1, endIndex ); getDelegate().setCookie( name, value ); }
public void jsSet_cookie( String cookieSpec ) { final int equalsIndex = cookieSpec.indexOf( '=' ); if (equalsIndex <0) return; int endIndex = cookieSpec.indexOf( ";", equalsIndex ); if (endIndex < 0) endIndex = cookieSpec.length(); String name = cookieSpec.substring( 0, equalsIndex ); String value = cookieSpec.substring( equalsIndex+1, endIndex ); getDelegate().setCookie( name, value ); }
public void jsSet_cookie( String cookieSpec ) { final int equalsIndex = cookieSpec.indexOf( '=' ); if (equalsIndex <0) return; int endIndex = cookieSpec.indexOf( ";", equalsIndex ); if (endIndex < 0) endIndex = cookieSpec.length(); String name = cookieSpec.substring( 0, equalsIndex ); String value = cookieSpec.substring( equalsIndex+1, endIndex ); getDelegate().setCookie( name, value ); }
public String jsGet_title() throws SAXException { return getDelegate().getTitle(); }
public Object jsFunction_getElementsByTagName( String name ) { return toElementArray( getDelegate().getElementsByTagName( name ) ); }
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 Scriptable jsGet_images() throws SAXException{ if (_images == null) _images = toElementArray( getDelegate().getImages() ); return _images; }
public Object jsFunction_getElementsByTagName( String name ) { return toElementArray( getDelegate().getElementsByTagName( name ) ); }
public Object jsFunction_getElementById( String id ) { ScriptableDelegate elementWithID = getDelegate().getElementWithID( id ); return elementWithID == null ? null : toScriptable( elementWithID ); }
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 Scriptable jsGet_images() throws SAXException{ if (_images == null) _images = toElementArray( getDelegate().getImages() ); return _images; }
public Scriptable jsGet_links() throws SAXException { if (_links == null) _links = toElementArray( getDelegate().getLinks() ); return _links; }
public Scriptable jsGet_links() throws SAXException { if (_links == null) _links = toElementArray( getDelegate().getLinks() ); return _links; }
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 void jsFunction_close() { if (getDelegate().replaceText( getWriteBuffer().toString(), _mimeType == null ? "text/html" : _mimeType )) { getWriteBuffer().setLength(0); } }
public void jsFunction_close() { if (getDelegate().replaceText( getWriteBuffer().toString(), _mimeType == null ? "text/html" : _mimeType )) { getWriteBuffer().setLength(0); } }
public void jsFunction_close() { if (getDelegate().replaceText( getWriteBuffer().toString(), _mimeType == null ? "text/html" : _mimeType )) { getWriteBuffer().setLength(0); } }