All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.dom.URL Maven / Gradle / Ivy

The newest version!
package elemental2.dom;
import elemental2.dom.URLSearchParams;
import jsinterop.base.Js;
import jsinterop.annotations.JsOverlay;
import elemental2.dom.MediaSource;
import elemental2.dom.MediaStream;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.dom.Blob;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class URL{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface ConstructorBaseUnionType{
@JsOverlay
static URL.ConstructorBaseUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default String asString(){
return Js.asString(this);
}
@JsOverlay
default URL asURL(){
return Js.cast(this);
}
@JsOverlay
default boolean isString(){
return (Object)this instanceof String;
}
@JsOverlay
default boolean isURL(){
return (Object)this instanceof URL;
}
}
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface ConstructorUrlUnionType{
@JsOverlay
static URL.ConstructorUrlUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default String asString(){
return Js.asString(this);
}
@JsOverlay
default URL asURL(){
return Js.cast(this);
}
@JsOverlay
default boolean isString(){
return (Object)this instanceof String;
}
@JsOverlay
default boolean isURL(){
return (Object)this instanceof URL;
}
}
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface CreateObjectURLObjUnionType{
@JsOverlay
static URL.CreateObjectURLObjUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default Blob asBlob(){
return Js.cast(this);
}
@JsOverlay
default MediaSource asMediaSource(){
return Js.cast(this);
}
@JsOverlay
default MediaStream asMediaStream(){
return Js.cast(this);
}
@JsOverlay
default boolean isBlob(){
return (Object)this instanceof Blob;
}
@JsOverlay
default boolean isMediaSource(){
return (Object)this instanceof MediaSource;
}
@JsOverlay
default boolean isMediaStream(){
return (Object)this instanceof MediaStream;
}
}
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface RevokeObjectURLUrlUnionType{
@JsOverlay
static URL.RevokeObjectURLUrlUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default String asString(){
return Js.asString(this);
}
@JsOverlay
default URL asURL(){
return Js.cast(this);
}
@JsOverlay
default boolean isString(){
return (Object)this instanceof String;
}
@JsOverlay
default boolean isURL(){
return (Object)this instanceof URL;
}
}
@JsOverlay
public static final String createObjectURL(Blob obj){
return createObjectURL(Js.uncheckedCast(obj));
}
public static native String createObjectURL(URL.CreateObjectURLObjUnionType obj);
@JsOverlay
public static final String createObjectURL(MediaSource obj){
return createObjectURL(Js.uncheckedCast(obj));
}
@JsOverlay
public static final String createObjectURL(MediaStream obj){
return createObjectURL(Js.uncheckedCast(obj));
}
public static native String domainToASCII(String domain);
public static native String domainToUnicode(String domain);
public static native void revokeObjectURL(URL.RevokeObjectURLUrlUnionType url);
@JsOverlay
public static final void revokeObjectURL(String url){
revokeObjectURL(Js.uncheckedCast(url));
}
@JsOverlay
public static final void revokeObjectURL(URL url){
revokeObjectURL(Js.uncheckedCast(url));
}
public String hash;
public String host;
public String hostname;
public String href;
public String origin;
public String password;
public String pathname;
public String port;
public String protocol;
public String search;
public URLSearchParams searchParams;
public String username;
public URL(URL.ConstructorUrlUnionType url,URL.ConstructorBaseUnionType base){}
public URL(URL.ConstructorUrlUnionType url,String base){}
public URL(URL.ConstructorUrlUnionType url,URL base){}
public URL(URL.ConstructorUrlUnionType url){}
public URL(String url,URL.ConstructorBaseUnionType base){}
public URL(String url,String base){}
public URL(String url,URL base){}
public URL(String url){}
public URL(URL url,URL.ConstructorBaseUnionType base){}
public URL(URL url,String base){}
public URL(URL url,URL base){}
public URL(URL url){}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy