@Override public Object call(final Context arg0, final Scriptable arg1, final Scriptable arg2, final Object[] arg3) { try { final Object rv = METHOD_callN_.invoke(null, object_, name, arg3); return wrapIfNecessary(rv); } catch (final Exception ex) { throw Context.throwAsScriptRuntimeEx(ex); } }
/** * Returns the IP address of the local host, as a string in the dot-separated integer format. * @return the IP address of the local host, as a string in the dot-separated integer format. */ public static String myIpAddress() { try { return InetAddress.getLocalHost().getHostAddress(); } catch (final Exception e) { throw Context.throwAsScriptRuntimeEx(e); } }
/** * Returns the {@code relList} attribute. * @return the {@code relList} attribute */ @JsxGetter(FF) public DOMTokenList getRelList() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code download} attribute. * @return the {@code download} attribute */ @JsxGetter({CHROME, FF}) public String getDownload() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code relList} attribute. * @return the {@code relList} attribute */ @JsxGetter({CHROME, FF}) public DOMTokenList getRelList() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code relList} attribute. * @return the {@code relList} attribute */ @JsxGetter(FF) public DOMTokenList getRelList() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code username} attribute. * @return the {@code username} attribute */ @JsxGetter({CHROME, FF}) public String getUsername() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code password} attribute. * @return the {@code password} attribute */ @JsxGetter({CHROME, FF}) public String getPassword() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Sets the {@code download} attribute. * @param download {@code download} attribute */ @JsxSetter({CHROME, FF}) public void setDownload(final String download) { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code protocolLong} attribute. * @return the {@code protocolLong} attribute */ @JsxGetter(IE) public String getProtocolLong() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code urn} attribute. * @return the {@code urn} attribute */ @JsxGetter(IE) public String getUrn() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Sets the {@code username} attribute. * @param username {@code username} attribute */ @JsxSetter({CHROME, FF}) public void setUsername(final String username) { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Sets the {@code password} attribute. * @param password {@code password} attribute */ @JsxSetter({CHROME, FF}) public void setPassword(final String password) { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code shape} attribute. * @return the {@code shape} attribute */ @JsxGetter public String getShape() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code Methods} attribute. * @return the {@code Methods} attribute */ @JsxGetter(propertyName = "Methods", value = IE) public String getMethods() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Returns the {@code mimeType} attribute. * @return the {@code mimeType} attribute */ @JsxGetter(IE) public String getMimeType() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * Sets the {@code mimeType} attribute. * @param mimeType {@code mimeType} attribute */ @JsxSetter(IE) public void setMimeType(final String mimeType) { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); }
/** * The JavaScript constructor. It seems it is not possible to do it from JavaScript code. */ @JsxConstructor({CHROME, FF, EDGE}) public void jConstructor() { Context.throwAsScriptRuntimeEx(new IllegalArgumentException("Illegal Constructor")); }
/** * JavaScript function "back". */ @JsxFunction public void back() { try { getWindow().getWebWindow().getHistory().back(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * JavaScript function "forward". */ @JsxFunction public void forward() { try { getWindow().getWebWindow().getHistory().forward(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }