RingJavafor Ring

java.net

66 classes of the module java.base.

Load them with:

using {
	"java.net"
}

All packages

Authenticator#

abstract · extends Object · java.net.Authenticator

Methods

MethodRing callJava overloads
getDefaultgetDefault()static Authenticator getDefault()
requestPasswordAuthenticationrequestPasswordAuthentication([addr,port,protocol,prompt,scheme])
requestPasswordAuthentication([ :addr = v, :port = v, :protocol = v, :prompt = v, :scheme = v ])
requestPasswordAuthentication([host,addr,port,protocol,prompt,scheme])
requestPasswordAuthentication([ :host = v, :addr = v, :port = v, :protocol = v, :prompt = v, :scheme = v ])
requestPasswordAuthentication([host,addr,port,protocol,prompt,scheme,url,reqType])
requestPasswordAuthentication([ :host = v, :addr = v, :port = v, :protocol = v, :prompt = v, :scheme = v, :url = v, :reqType = v ])
requestPasswordAuthentication([authenticator,host,addr,port,protocol,prompt,scheme,url,reqType])
requestPasswordAuthentication([ :authenticator = v, :host = v, :addr = v, :port = v, :protocol = v, :prompt = v, :scheme = v, :url = v, :reqType = v ])
static PasswordAuthentication requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme)
static PasswordAuthentication requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme)
static PasswordAuthentication requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, RequestorType reqType)
static PasswordAuthentication requestPasswordAuthentication(Authenticator authenticator, String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, RequestorType reqType)
requestPasswordAuthenticationInstancerequestPasswordAuthenticationInstance(host,addr,port,protocol,prompt,scheme,url,reqType)PasswordAuthentication requestPasswordAuthenticationInstance(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, RequestorType reqType)
setDefaultsetDefault(a)static void setDefault(Authenticator a)

The methods and fields of Object are inherited.

AuthenticatorRequestorType#

enum · extends Enum · java.net.Authenticator$RequestorType

Fields

NameTypeAccessIn Ring
PROXYRequestorTypeconstant · statico.PROXY
SERVERRequestorTypeconstant · statico.SERVER

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static RequestorType valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static RequestorType[] values()

The methods and fields of Enum are inherited.

BindException#

class · extends SocketException · java.net.BindException

Constructors

new BindException()
new BindException(String msg)

Ring: new BindException(args) uses the constructor with the fewest parameters (at least one); new BindException makes the object with the constructor without parameters; the others: (new BindException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of SocketException are inherited.

CacheRequest#

abstract · extends Object · java.net.CacheRequest

Methods

MethodRing callJava overloads
abortabort()void abort()
getBodygetBody()OutputStream getBody()

The methods and fields of Object are inherited.

CacheResponse#

abstract · extends Object · java.net.CacheResponse

Methods

MethodRing callJava overloads
getBodygetBody()InputStream getBody()
getHeadersgetHeaders()Map getHeaders()

The methods and fields of Object are inherited.

ConnectException#

class · extends SocketException · java.net.ConnectException

Constructors

new ConnectException()
new ConnectException(String msg)

Ring: new ConnectException(args) uses the constructor with the fewest parameters (at least one); new ConnectException makes the object with the constructor without parameters; the others: (new ConnectException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of SocketException are inherited.

ContentHandler#

abstract · extends Object · java.net.ContentHandler

Methods

MethodRing callJava overloads
getContentgetContent(urlc)
getContent([urlc,classes])
getContent([ :urlc = v, :classes = v ])
Object getContent(URLConnection urlc)
Object getContent(URLConnection urlc, Class[] classes)

The methods and fields of Object are inherited.

ContentHandlerFactory#

interface · java.net.ContentHandlerFactory

Methods

MethodRing callJava overloads
createContentHandlercreateContentHandler(mimetype)ContentHandler createContentHandler(String mimetype)

CookieHandler#

abstract · extends Object · java.net.CookieHandler

Methods

MethodRing callJava overloads
@get@get(uri,requestHeaders)Map get(URI uri, Map requestHeaders)
@put@put(uri,responseHeaders)void put(URI uri, Map responseHeaders)
getDefaultgetDefault()static CookieHandler getDefault()
setDefaultsetDefault(cHandler)static void setDefault(CookieHandler cHandler)

The methods and fields of Object are inherited.

CookieManager#

class · extends CookieHandler · java.net.CookieManager

Constructors

new CookieManager()
new CookieManager(CookieStore store, CookiePolicy cookiePolicy)

Ring: new CookieManager(args) uses the constructor with the fewest parameters (at least one); new CookieManager makes the object with the constructor without parameters; the others: (new CookieManager).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getCookieStoregetCookieStore()CookieStore getCookieStore()
setCookiePolicysetCookiePolicy(cookiePolicy)void setCookiePolicy(CookiePolicy cookiePolicy)

The methods and fields of CookieHandler are inherited.

CookiePolicy#

interface · java.net.CookiePolicy

Fields

NameTypeAccessIn Ring
ACCEPT_ALLCookiePolicyconstant · statico.ACCEPT_ALL
ACCEPT_NONECookiePolicyconstant · statico.ACCEPT_NONE
ACCEPT_ORIGINAL_SERVERCookiePolicyconstant · statico.ACCEPT_ORIGINAL_SERVER

Methods

MethodRing callJava overloads
shouldAcceptshouldAccept(uri,cookie)boolean shouldAccept(URI uri, HttpCookie cookie)

CookieStore#

interface · java.net.CookieStore

Methods

MethodRing callJava overloads
@get@get(uri)List get(URI uri)
addadd(uri,cookie)void add(URI uri, HttpCookie cookie)
getCookiesgetCookies()List getCookies()
getURIsgetURIs()List getURIs()
removeremove(uri,cookie)boolean remove(URI uri, HttpCookie cookie)
removeAllremoveAll()boolean removeAll()

DatagramPacket#

class final · extends Object · java.net.DatagramPacket

Constructors

new DatagramPacket(byte[] buf, int length)
new DatagramPacket(byte[] buf, int length, SocketAddress address)
new DatagramPacket(byte[] buf, int offset, int length)
new DatagramPacket(byte[] buf, int length, InetAddress address, int port)
new DatagramPacket(byte[] buf, int offset, int length, SocketAddress address)
new DatagramPacket(byte[] buf, int offset, int length, InetAddress address, int port)

Ring: new DatagramPacket(args) uses the constructor with the fewest parameters (at least one); new DatagramPacket makes the object with the constructor without parameters; the others: (new DatagramPacket).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getAddressgetAddress()InetAddress getAddress()
getDatagetData()byte[] getData()
getLengthgetLength()int getLength()
getOffsetgetOffset()int getOffset()
getPortgetPort()int getPort()
getSocketAddressgetSocketAddress()SocketAddress getSocketAddress()
setAddresssetAddress(iaddr)void setAddress(InetAddress iaddr)
setDatasetData(buf)
setData([buf,offset,length])
setData([ :buf = v, :offset = v, :length = v ])
void setData(byte[] buf)
void setData(byte[] buf, int offset, int length)
setLengthsetLength(length)void setLength(int length)
setPortsetPort(iport)void setPort(int iport)
setSocketAddresssetSocketAddress(address)void setSocketAddress(SocketAddress address)

The methods and fields of Object are inherited.

DatagramSocket#

class · extends Object · java.net.DatagramSocket

Implements: Closeable

Constructors

new DatagramSocket()
new DatagramSocket(int port)
new DatagramSocket(SocketAddress bindaddr)
new DatagramSocket(int port, InetAddress laddr)

Ring: new DatagramSocket(args) uses the constructor with the fewest parameters (at least one); new DatagramSocket makes the object with the constructor without parameters; the others: (new DatagramSocket).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
bindbind(addr)void bind(SocketAddress addr)
closeclose()void close()
connectconnect(addr)
connect([address,port])
connect([ :address = v, :port = v ])
void connect(SocketAddress addr)
void connect(InetAddress address, int port)
disconnectdisconnect()void disconnect()
getBroadcastgetBroadcast()boolean getBroadcast()
getChannelgetChannel()DatagramChannel getChannel()
getInetAddressgetInetAddress()InetAddress getInetAddress()
getLocalAddressgetLocalAddress()InetAddress getLocalAddress()
getLocalPortgetLocalPort()int getLocalPort()
getLocalSocketAddressgetLocalSocketAddress()SocketAddress getLocalSocketAddress()
getOptiongetOption(name)Object getOption(SocketOption name)
getPortgetPort()int getPort()
getReceiveBufferSizegetReceiveBufferSize()int getReceiveBufferSize()
getRemoteSocketAddressgetRemoteSocketAddress()SocketAddress getRemoteSocketAddress()
getReuseAddressgetReuseAddress()boolean getReuseAddress()
getSendBufferSizegetSendBufferSize()int getSendBufferSize()
getSoTimeoutgetSoTimeout()int getSoTimeout()
getTrafficClassgetTrafficClass()int getTrafficClass()
isBoundisBound()boolean isBound()
isClosedisClosed()boolean isClosed()
isConnectedisConnected()boolean isConnected()
joinGroupjoinGroup(mcastaddr,netIf)void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf)
leaveGroupleaveGroup(mcastaddr,netIf)void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf)
receivereceive(p)void receive(DatagramPacket p)
sendsend(p)void send(DatagramPacket p)
setBroadcastsetBroadcast(on)void setBroadcast(boolean on)
setDatagramSocketImplFactorysetDatagramSocketImplFactory(fac)static void setDatagramSocketImplFactory(DatagramSocketImplFactory fac)
setOptionsetOption(name,value)DatagramSocket setOption(SocketOption name, Object value)
setReceiveBufferSizesetReceiveBufferSize(size)void setReceiveBufferSize(int size)
setReuseAddresssetReuseAddress(on)void setReuseAddress(boolean on)
setSendBufferSizesetSendBufferSize(size)void setSendBufferSize(int size)
setSoTimeoutsetSoTimeout(timeout)void setSoTimeout(int timeout)
setTrafficClasssetTrafficClass(tc)void setTrafficClass(int tc)
supportedOptionssupportedOptions()Set supportedOptions()

The methods and fields of Object are inherited.

DatagramSocketImpl#

abstract · extends Object · java.net.DatagramSocketImpl

Implements: SocketOptions

Fields

NameTypeAccessIn Ring
TCP_NODELAYintconstant · statico.TCP_NODELAY
SO_BINDADDRintconstant · statico.SO_BINDADDR
SO_REUSEADDRintconstant · statico.SO_REUSEADDR
SO_REUSEPORTintconstant · statico.SO_REUSEPORT
SO_BROADCASTintconstant · statico.SO_BROADCAST
IP_MULTICAST_IFintconstant · statico.IP_MULTICAST_IF
IP_MULTICAST_IF2intconstant · statico.IP_MULTICAST_IF2
IP_MULTICAST_LOOPintconstant · statico.IP_MULTICAST_LOOP
IP_TOSintconstant · statico.IP_TOS
SO_LINGERintconstant · statico.SO_LINGER
SO_TIMEOUTintconstant · statico.SO_TIMEOUT
SO_SNDBUFintconstant · statico.SO_SNDBUF
SO_RCVBUFintconstant · statico.SO_RCVBUF
SO_KEEPALIVEintconstant · statico.SO_KEEPALIVE
SO_OOBINLINEintconstant · statico.SO_OOBINLINE

Methods

MethodRing callJava overloads
getOptiongetOption(optID)Object getOption(int optID)
setOptionsetOption(optID,value)void setOption(int optID, Object value)

The methods and fields of Object are inherited.

DatagramSocketImplFactory#

interface · java.net.DatagramSocketImplFactory

Methods

MethodRing callJava overloads
createDatagramSocketImplcreateDatagramSocketImpl()DatagramSocketImpl createDatagramSocketImpl()

FileNameMap#

interface · java.net.FileNameMap

Methods

MethodRing callJava overloads
getContentTypeForgetContentTypeFor(fileName)String getContentTypeFor(String fileName)

HttpCookie#

class final · extends Object · java.net.HttpCookie

Implements: Cloneable

Constructors

new HttpCookie(String name, String value)

Ring: new HttpCookie(args) uses the constructor with the fewest parameters (at least one); new HttpCookie makes the object with the constructor without parameters; the others: (new HttpCookie).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
cloneclone()Object clone()
domainMatchesdomainMatches(domain,host)static boolean domainMatches(String domain, String host)
getCommentgetComment()String getComment()
getCommentURLgetCommentURL()String getCommentURL()
getDiscardgetDiscard()boolean getDiscard()
getDomaingetDomain()String getDomain()
getMaxAgegetMaxAge()long getMaxAge()
getNamegetName()String getName()
getPathgetPath()String getPath()
getPortlistgetPortlist()String getPortlist()
getSecuregetSecure()boolean getSecure()
getValuegetValue()String getValue()
getVersiongetVersion()int getVersion()
hasExpiredhasExpired()boolean hasExpired()
isHttpOnlyisHttpOnly()boolean isHttpOnly()
parseparse(header)static List parse(String header)
setCommentsetComment(purpose)void setComment(String purpose)
setCommentURLsetCommentURL(purpose)void setCommentURL(String purpose)
setDiscardsetDiscard(discard)void setDiscard(boolean discard)
setDomainsetDomain(pattern)void setDomain(String pattern)
setHttpOnlysetHttpOnly(httpOnly)void setHttpOnly(boolean httpOnly)
setMaxAgesetMaxAge(expiry)void setMaxAge(long expiry)
setPathsetPath(uri)void setPath(String uri)
setPortlistsetPortlist(ports)void setPortlist(String ports)
setSecuresetSecure(flag)void setSecure(boolean flag)
setValuesetValue(newValue)void setValue(String newValue)
setVersionsetVersion(v)void setVersion(int v)

The methods and fields of Object are inherited.

HttpRetryException#

class · extends IOException · java.net.HttpRetryException

Constructors

new HttpRetryException(String detail, int code)
new HttpRetryException(String detail, int code, String location)

Ring: new HttpRetryException(args) uses the constructor with the fewest parameters (at least one); new HttpRetryException makes the object with the constructor without parameters; the others: (new HttpRetryException).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getLocationgetLocation()String getLocation()
getReasongetReason()String getReason()
responseCoderesponseCode()int responseCode()

The methods and fields of IOException are inherited.

HttpURLConnection#

abstract · extends URLConnection · java.net.HttpURLConnection

Fields

NameTypeAccessIn Ring
HTTP_OKintconstant · statico.HTTP_OK
HTTP_CREATEDintconstant · statico.HTTP_CREATED
HTTP_ACCEPTEDintconstant · statico.HTTP_ACCEPTED
HTTP_NOT_AUTHORITATIVEintconstant · statico.HTTP_NOT_AUTHORITATIVE
HTTP_NO_CONTENTintconstant · statico.HTTP_NO_CONTENT
HTTP_RESETintconstant · statico.HTTP_RESET
HTTP_PARTIALintconstant · statico.HTTP_PARTIAL
HTTP_MULT_CHOICEintconstant · statico.HTTP_MULT_CHOICE
HTTP_MOVED_PERMintconstant · statico.HTTP_MOVED_PERM
HTTP_MOVED_TEMPintconstant · statico.HTTP_MOVED_TEMP
HTTP_SEE_OTHERintconstant · statico.HTTP_SEE_OTHER
HTTP_NOT_MODIFIEDintconstant · statico.HTTP_NOT_MODIFIED
HTTP_USE_PROXYintconstant · statico.HTTP_USE_PROXY
HTTP_BAD_REQUESTintconstant · statico.HTTP_BAD_REQUEST
HTTP_UNAUTHORIZEDintconstant · statico.HTTP_UNAUTHORIZED
HTTP_PAYMENT_REQUIREDintconstant · statico.HTTP_PAYMENT_REQUIRED
HTTP_FORBIDDENintconstant · statico.HTTP_FORBIDDEN
HTTP_NOT_FOUNDintconstant · statico.HTTP_NOT_FOUND
HTTP_BAD_METHODintconstant · statico.HTTP_BAD_METHOD
HTTP_NOT_ACCEPTABLEintconstant · statico.HTTP_NOT_ACCEPTABLE
HTTP_PROXY_AUTHintconstant · statico.HTTP_PROXY_AUTH
HTTP_CLIENT_TIMEOUTintconstant · statico.HTTP_CLIENT_TIMEOUT
HTTP_CONFLICTintconstant · statico.HTTP_CONFLICT
HTTP_GONEintconstant · statico.HTTP_GONE
HTTP_LENGTH_REQUIREDintconstant · statico.HTTP_LENGTH_REQUIRED
HTTP_PRECON_FAILEDintconstant · statico.HTTP_PRECON_FAILED
HTTP_ENTITY_TOO_LARGEintconstant · statico.HTTP_ENTITY_TOO_LARGE
HTTP_REQ_TOO_LONGintconstant · statico.HTTP_REQ_TOO_LONG
HTTP_UNSUPPORTED_TYPEintconstant · statico.HTTP_UNSUPPORTED_TYPE
HTTP_SERVER_ERRORintconstant · statico.HTTP_SERVER_ERROR
HTTP_INTERNAL_ERRORintconstant · statico.HTTP_INTERNAL_ERROR
HTTP_NOT_IMPLEMENTEDintconstant · statico.HTTP_NOT_IMPLEMENTED
HTTP_BAD_GATEWAYintconstant · statico.HTTP_BAD_GATEWAY
HTTP_UNAVAILABLEintconstant · statico.HTTP_UNAVAILABLE
HTTP_GATEWAY_TIMEOUTintconstant · statico.HTTP_GATEWAY_TIMEOUT
HTTP_VERSIONintconstant · statico.HTTP_VERSION

Methods

MethodRing callJava overloads
disconnectdisconnect()void disconnect()
getErrorStreamgetErrorStream()InputStream getErrorStream()
getFollowRedirectsgetFollowRedirects()static boolean getFollowRedirects()
getInstanceFollowRedirectsgetInstanceFollowRedirects()boolean getInstanceFollowRedirects()
getRequestMethodgetRequestMethod()String getRequestMethod()
getResponseCodegetResponseCode()int getResponseCode()
getResponseMessagegetResponseMessage()String getResponseMessage()
setAuthenticatorsetAuthenticator(auth)void setAuthenticator(Authenticator auth)
setChunkedStreamingModesetChunkedStreamingMode(chunklen)void setChunkedStreamingMode(int chunklen)
setFixedLengthStreamingModesetFixedLengthStreamingMode(contentLength)void setFixedLengthStreamingMode(long contentLength)
void setFixedLengthStreamingMode(int contentLength)
setFollowRedirectssetFollowRedirects(set)static void setFollowRedirects(boolean set)
setInstanceFollowRedirectssetInstanceFollowRedirects(followRedirects)void setInstanceFollowRedirects(boolean followRedirects)
setRequestMethodsetRequestMethod(method)void setRequestMethod(String method)
usingProxyusingProxy()boolean usingProxy()

The methods and fields of URLConnection are inherited.

IDN#

class final · extends Object · java.net.IDN

Fields

NameTypeAccessIn Ring
ALLOW_UNASSIGNEDintconstant · statico.ALLOW_UNASSIGNED
USE_STD3_ASCII_RULESintconstant · statico.USE_STD3_ASCII_RULES

Methods

MethodRing callJava overloads
toASCIItoASCII(input)
toASCII([input,flag])
toASCII([ :input = v, :flag = v ])
static String toASCII(String input)
static String toASCII(String input, int flag)
toUnicodetoUnicode(input)
toUnicode([input,flag])
toUnicode([ :input = v, :flag = v ])
static String toUnicode(String input)
static String toUnicode(String input, int flag)

The methods and fields of Object are inherited.

Inet4Address#

class final · extends InetAddress · java.net.Inet4Address

Methods

MethodRing callJava overloads
ofPosixLiteralofPosixLiteral(posixIPAddressLiteral)static Inet4Address ofPosixLiteral(String posixIPAddressLiteral)

The methods and fields of InetAddress are inherited.

Inet6Address#

class final · extends InetAddress · java.net.Inet6Address

Methods

MethodRing callJava overloads
getScopedInterfacegetScopedInterface()NetworkInterface getScopedInterface()
getScopeIdgetScopeId()int getScopeId()
isIPv4CompatibleAddressisIPv4CompatibleAddress()boolean isIPv4CompatibleAddress()

The methods and fields of InetAddress are inherited.

InetAddress#

class · extends Object · java.net.InetAddress

Implements: Serializable

Methods

MethodRing callJava overloads
getAddressgetAddress()byte[] getAddress()
getAllByNamegetAllByName(host)static InetAddress[] getAllByName(String host)
getByAddressgetByAddress(addr)
getByAddress([host,addr])
getByAddress([ :host = v, :addr = v ])
static InetAddress getByAddress(byte[] addr)
static InetAddress getByAddress(String host, byte[] addr)
getByNamegetByName(host)static InetAddress getByName(String host)
getCanonicalHostNamegetCanonicalHostName()String getCanonicalHostName()
getHostAddressgetHostAddress()String getHostAddress()
getHostNamegetHostName()String getHostName()
getLocalHostgetLocalHost()static InetAddress getLocalHost()
getLoopbackAddressgetLoopbackAddress()static InetAddress getLoopbackAddress()
isAnyLocalAddressisAnyLocalAddress()boolean isAnyLocalAddress()
isLinkLocalAddressisLinkLocalAddress()boolean isLinkLocalAddress()
isLoopbackAddressisLoopbackAddress()boolean isLoopbackAddress()
isMCGlobalisMCGlobal()boolean isMCGlobal()
isMCLinkLocalisMCLinkLocal()boolean isMCLinkLocal()
isMCNodeLocalisMCNodeLocal()boolean isMCNodeLocal()
isMCOrgLocalisMCOrgLocal()boolean isMCOrgLocal()
isMCSiteLocalisMCSiteLocal()boolean isMCSiteLocal()
isMulticastAddressisMulticastAddress()boolean isMulticastAddress()
isReachableisReachable(timeout)
isReachable([netif,ttl,timeout])
isReachable([ :netif = v, :ttl = v, :timeout = v ])
boolean isReachable(int timeout)
boolean isReachable(NetworkInterface netif, int ttl, int timeout)
isSiteLocalAddressisSiteLocalAddress()boolean isSiteLocalAddress()
ofLiteralofLiteral(ipAddressLiteral)static InetAddress ofLiteral(String ipAddressLiteral)

The methods and fields of Object are inherited.

InetSocketAddress#

class · extends SocketAddress · java.net.InetSocketAddress

Constructors

new InetSocketAddress(int port)
new InetSocketAddress(String hostname, int port)
new InetSocketAddress(InetAddress addr, int port)

Ring: new InetSocketAddress(args) uses the constructor with the fewest parameters (at least one); new InetSocketAddress makes the object with the constructor without parameters; the others: (new InetSocketAddress).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
createUnresolvedcreateUnresolved(host,port)static InetSocketAddress createUnresolved(String host, int port)
getAddressgetAddress()InetAddress getAddress()
getHostNamegetHostName()String getHostName()
getHostStringgetHostString()String getHostString()
getPortgetPort()int getPort()
isUnresolvedisUnresolved()boolean isUnresolved()

The methods and fields of SocketAddress are inherited.

InterfaceAddress#

class final · extends Object · java.net.InterfaceAddress

Methods

MethodRing callJava overloads
getAddressgetAddress()InetAddress getAddress()
getBroadcastgetBroadcast()InetAddress getBroadcast()
getNetworkPrefixLengthgetNetworkPrefixLength()short getNetworkPrefixLength()

The methods and fields of Object are inherited.

JarURLConnection#

abstract · extends URLConnection · java.net.JarURLConnection

Methods

MethodRing callJava overloads
getAttributesgetAttributes()Attributes getAttributes()
getCertificatesgetCertificates()Certificate[] getCertificates()
getEntryNamegetEntryName()String getEntryName()
getJarEntrygetJarEntry()JarEntry getJarEntry()
getJarFilegetJarFile()JarFile getJarFile()
getJarFileURLgetJarFileURL()URL getJarFileURL()
getMainAttributesgetMainAttributes()Attributes getMainAttributes()
getManifestgetManifest()Manifest getManifest()

The methods and fields of URLConnection are inherited.

MalformedURLException#

class · extends IOException · java.net.MalformedURLException

Constructors

new MalformedURLException()
new MalformedURLException(String msg)

Ring: new MalformedURLException(args) uses the constructor with the fewest parameters (at least one); new MalformedURLException makes the object with the constructor without parameters; the others: (new MalformedURLException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of IOException are inherited.

MulticastSocket#

class · extends DatagramSocket · java.net.MulticastSocket

Constructors

new MulticastSocket()
new MulticastSocket(int port)
new MulticastSocket(SocketAddress bindaddr)

Ring: new MulticastSocket(args) uses the constructor with the fewest parameters (at least one); new MulticastSocket makes the object with the constructor without parameters; the others: (new MulticastSocket).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getInterfacegetInterface()InetAddress getInterface()
getLoopbackModegetLoopbackMode()boolean getLoopbackMode()
getNetworkInterfacegetNetworkInterface()NetworkInterface getNetworkInterface()
getTimeToLivegetTimeToLive()int getTimeToLive()
getTTLgetTTL()byte getTTL()
joinGroupjoinGroup(mcastaddr)
joinGroup([mcastaddr,netIf])
joinGroup([ :mcastaddr = v, :netIf = v ])
void joinGroup(InetAddress mcastaddr)
void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf)
leaveGroupleaveGroup(mcastaddr)
leaveGroup([mcastaddr,netIf])
leaveGroup([ :mcastaddr = v, :netIf = v ])
void leaveGroup(InetAddress mcastaddr)
void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf)
sendsend(p)
send([p,ttl])
send([ :p = v, :ttl = v ])
void send(DatagramPacket p)
void send(DatagramPacket p, byte ttl)
setInterfacesetInterface(inf)void setInterface(InetAddress inf)
setLoopbackModesetLoopbackMode(disable)void setLoopbackMode(boolean disable)
setNetworkInterfacesetNetworkInterface(netIf)void setNetworkInterface(NetworkInterface netIf)
setTimeToLivesetTimeToLive(ttl)void setTimeToLive(int ttl)
setTTLsetTTL(ttl)void setTTL(byte ttl)

The methods and fields of DatagramSocket are inherited.

NetPermission#

class final · extends BasicPermission · java.net.NetPermission

Constructors

new NetPermission(String name)
new NetPermission(String name, String actions)

Ring: new NetPermission(args) uses the constructor with the fewest parameters (at least one); new NetPermission makes the object with the constructor without parameters; the others: (new NetPermission).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of BasicPermission are inherited.

NetProxy#

class · extends Object · java.net.Proxy

Constructors

new NetProxy(Type type, SocketAddress sa)

Ring: new NetProxy(args) uses the constructor with the fewest parameters (at least one); new NetProxy makes the object with the constructor without parameters; the others: (new NetProxy).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
NO_PROXYProxyconstant · statico.NO_PROXY

Methods

MethodRing callJava overloads
addressaddress()SocketAddress address()
typetype()Type type()

The methods and fields of Object are inherited.

NetworkInterface#

class final · extends Object · java.net.NetworkInterface

Methods

MethodRing callJava overloads
getByIndexgetByIndex(index)static NetworkInterface getByIndex(int index)
getByInetAddressgetByInetAddress(addr)static NetworkInterface getByInetAddress(InetAddress addr)
getByNamegetByName(name)static NetworkInterface getByName(String name)
getDisplayNamegetDisplayName()String getDisplayName()
getHardwareAddressgetHardwareAddress()byte[] getHardwareAddress()
getIndexgetIndex()int getIndex()
getInetAddressesgetInetAddresses()Enumeration getInetAddresses()
getInterfaceAddressesgetInterfaceAddresses()List getInterfaceAddresses()
getMTUgetMTU()int getMTU()
getNamegetName()String getName()
getNetworkInterfacesgetNetworkInterfaces()static Enumeration getNetworkInterfaces()
getParentgetParent()NetworkInterface getParent()
getSubInterfacesgetSubInterfaces()Enumeration getSubInterfaces()
inetAddressesinetAddresses()Stream inetAddresses()
isLoopbackisLoopback()boolean isLoopback()
isPointToPointisPointToPoint()boolean isPointToPoint()
isUpisUp()boolean isUp()
isVirtualisVirtual()boolean isVirtual()
networkInterfacesnetworkInterfaces()static Stream networkInterfaces()
subInterfacessubInterfaces()Stream subInterfaces()
supportsMulticastsupportsMulticast()boolean supportsMulticast()

The methods and fields of Object are inherited.

NoRouteToHostException#

class · extends SocketException · java.net.NoRouteToHostException

Constructors

new NoRouteToHostException()
new NoRouteToHostException(String msg)

Ring: new NoRouteToHostException(args) uses the constructor with the fewest parameters (at least one); new NoRouteToHostException makes the object with the constructor without parameters; the others: (new NoRouteToHostException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of SocketException are inherited.

PasswordAuthentication#

class final · extends Object · java.net.PasswordAuthentication

Constructors

new PasswordAuthentication(String userName, char[] password)

Ring: new PasswordAuthentication(args) uses the constructor with the fewest parameters (at least one); new PasswordAuthentication makes the object with the constructor without parameters; the others: (new PasswordAuthentication).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getPasswordgetPassword()char[] getPassword()
getUserNamegetUserName()String getUserName()

The methods and fields of Object are inherited.

PortUnreachableException#

class · extends SocketException · java.net.PortUnreachableException

Constructors

new PortUnreachableException()
new PortUnreachableException(String msg)

Ring: new PortUnreachableException(args) uses the constructor with the fewest parameters (at least one); new PortUnreachableException makes the object with the constructor without parameters; the others: (new PortUnreachableException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of SocketException are inherited.

ProtocolException#

class · extends IOException · java.net.ProtocolException

Constructors

new ProtocolException()
new ProtocolException(String message)

Ring: new ProtocolException(args) uses the constructor with the fewest parameters (at least one); new ProtocolException makes the object with the constructor without parameters; the others: (new ProtocolException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of IOException are inherited.

ProtocolFamily#

interface · java.net.ProtocolFamily

Methods

MethodRing callJava overloads
namename()String name()

ProxySelector#

abstract · extends Object · java.net.ProxySelector

Methods

MethodRing callJava overloads
connectFailedconnectFailed(uri,sa,ioe)void connectFailed(URI uri, SocketAddress sa, IOException ioe)
getDefaultgetDefault()static ProxySelector getDefault()
ofof(proxyAddress)static ProxySelector of(InetSocketAddress proxyAddress)
selectselect(uri)List select(URI uri)
setDefaultsetDefault(ps)static void setDefault(ProxySelector ps)

The methods and fields of Object are inherited.

ProxyType#

enum · extends Enum · java.net.Proxy$Type

Fields

NameTypeAccessIn Ring
DIRECTTypeconstant · statico.DIRECT
HTTPTypeconstant · statico.HTTP
SOCKSTypeconstant · statico.SOCKS

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static Type valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static Type[] values()

The methods and fields of Enum are inherited.

ResponseCache#

abstract · extends Object · java.net.ResponseCache

Methods

MethodRing callJava overloads
@get@get(uri,rqstMethod,rqstHeaders)CacheResponse get(URI uri, String rqstMethod, Map rqstHeaders)
@put@put(uri,conn)CacheRequest put(URI uri, URLConnection conn)
getDefaultgetDefault()static ResponseCache getDefault()
setDefaultsetDefault(responseCache)static void setDefault(ResponseCache responseCache)

The methods and fields of Object are inherited.

SecureCacheResponse#

abstract · extends CacheResponse · java.net.SecureCacheResponse

Methods

MethodRing callJava overloads
getCipherSuitegetCipherSuite()String getCipherSuite()
getLocalCertificateChaingetLocalCertificateChain()List getLocalCertificateChain()
getLocalPrincipalgetLocalPrincipal()Principal getLocalPrincipal()
getPeerPrincipalgetPeerPrincipal()Principal getPeerPrincipal()
getServerCertificateChaingetServerCertificateChain()List getServerCertificateChain()
getSSLSessiongetSSLSession()Optional getSSLSession()

The methods and fields of CacheResponse are inherited.

ServerSocket#

class · extends Object · java.net.ServerSocket

Implements: Closeable

Constructors

new ServerSocket()
new ServerSocket(int port)
new ServerSocket(int port, int backlog)
new ServerSocket(int port, int backlog, InetAddress bindAddr)

Ring: new ServerSocket(args) uses the constructor with the fewest parameters (at least one); new ServerSocket makes the object with the constructor without parameters; the others: (new ServerSocket).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
acceptaccept()Socket accept()
bindbind(endpoint)
bind([endpoint,backlog])
bind([ :endpoint = v, :backlog = v ])
void bind(SocketAddress endpoint)
void bind(SocketAddress endpoint, int backlog)
closeclose()void close()
getChannelgetChannel()ServerSocketChannel getChannel()
getInetAddressgetInetAddress()InetAddress getInetAddress()
getLocalPortgetLocalPort()int getLocalPort()
getLocalSocketAddressgetLocalSocketAddress()SocketAddress getLocalSocketAddress()
getOptiongetOption(name)Object getOption(SocketOption name)
getReceiveBufferSizegetReceiveBufferSize()int getReceiveBufferSize()
getReuseAddressgetReuseAddress()boolean getReuseAddress()
getSoTimeoutgetSoTimeout()int getSoTimeout()
isBoundisBound()boolean isBound()
isClosedisClosed()boolean isClosed()
setOptionsetOption(name,value)ServerSocket setOption(SocketOption name, Object value)
setPerformancePreferencessetPerformancePreferences(connectionTime,latency,bandwidth)void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setReceiveBufferSizesetReceiveBufferSize(size)void setReceiveBufferSize(int size)
setReuseAddresssetReuseAddress(on)void setReuseAddress(boolean on)
setSocketFactorysetSocketFactory(fac)static void setSocketFactory(SocketImplFactory fac)
setSoTimeoutsetSoTimeout(timeout)void setSoTimeout(int timeout)
supportedOptionssupportedOptions()Set supportedOptions()

The methods and fields of Object are inherited.

Socket#

class · extends Object · java.net.Socket

Implements: Closeable

Constructors

new Socket()
new Socket(Proxy proxy)
new Socket(InetAddress address, int port)
new Socket(String host, int port)
new Socket(InetAddress host, int port, boolean stream)
new Socket(String host, int port, boolean stream)
new Socket(String host, int port, InetAddress localAddr, int localPort)
new Socket(InetAddress address, int port, InetAddress localAddr, int localPort)

Ring: new Socket(args) uses the constructor with the fewest parameters (at least one); new Socket makes the object with the constructor without parameters; the others: (new Socket).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
bindbind(bindpoint)void bind(SocketAddress bindpoint)
closeclose()void close()
connectconnect(endpoint)
connect([endpoint,timeout])
connect([ :endpoint = v, :timeout = v ])
void connect(SocketAddress endpoint)
void connect(SocketAddress endpoint, int timeout)
getChannelgetChannel()SocketChannel getChannel()
getInetAddressgetInetAddress()InetAddress getInetAddress()
getInputStreamgetInputStream()InputStream getInputStream()
getKeepAlivegetKeepAlive()boolean getKeepAlive()
getLocalAddressgetLocalAddress()InetAddress getLocalAddress()
getLocalPortgetLocalPort()int getLocalPort()
getLocalSocketAddressgetLocalSocketAddress()SocketAddress getLocalSocketAddress()
getOOBInlinegetOOBInline()boolean getOOBInline()
getOptiongetOption(name)Object getOption(SocketOption name)
getOutputStreamgetOutputStream()OutputStream getOutputStream()
getPortgetPort()int getPort()
getReceiveBufferSizegetReceiveBufferSize()int getReceiveBufferSize()
getRemoteSocketAddressgetRemoteSocketAddress()SocketAddress getRemoteSocketAddress()
getReuseAddressgetReuseAddress()boolean getReuseAddress()
getSendBufferSizegetSendBufferSize()int getSendBufferSize()
getSoLingergetSoLinger()int getSoLinger()
getSoTimeoutgetSoTimeout()int getSoTimeout()
getTcpNoDelaygetTcpNoDelay()boolean getTcpNoDelay()
getTrafficClassgetTrafficClass()int getTrafficClass()
isBoundisBound()boolean isBound()
isClosedisClosed()boolean isClosed()
isConnectedisConnected()boolean isConnected()
isInputShutdownisInputShutdown()boolean isInputShutdown()
isOutputShutdownisOutputShutdown()boolean isOutputShutdown()
sendUrgentDatasendUrgentData(data)void sendUrgentData(int data)
setKeepAlivesetKeepAlive(on)void setKeepAlive(boolean on)
setOOBInlinesetOOBInline(on)void setOOBInline(boolean on)
setOptionsetOption(name,value)Socket setOption(SocketOption name, Object value)
setPerformancePreferencessetPerformancePreferences(connectionTime,latency,bandwidth)void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setReceiveBufferSizesetReceiveBufferSize(size)void setReceiveBufferSize(int size)
setReuseAddresssetReuseAddress(on)void setReuseAddress(boolean on)
setSendBufferSizesetSendBufferSize(size)void setSendBufferSize(int size)
setSocketImplFactorysetSocketImplFactory(fac)static void setSocketImplFactory(SocketImplFactory fac)
setSoLingersetSoLinger(on,linger)void setSoLinger(boolean on, int linger)
setSoTimeoutsetSoTimeout(timeout)void setSoTimeout(int timeout)
setTcpNoDelaysetTcpNoDelay(on)void setTcpNoDelay(boolean on)
setTrafficClasssetTrafficClass(tc)void setTrafficClass(int tc)
shutdownInputshutdownInput()void shutdownInput()
shutdownOutputshutdownOutput()void shutdownOutput()
supportedOptionssupportedOptions()Set supportedOptions()

The methods and fields of Object are inherited.

SocketAddress#

abstract · extends Object · java.net.SocketAddress

Implements: Serializable

The methods and fields of Object are inherited.

SocketException#

class · extends IOException · java.net.SocketException

Constructors

new SocketException()
new SocketException(Throwable cause)
new SocketException(String msg)
new SocketException(String msg, Throwable cause)

Ring: new SocketException(args) uses the constructor with the fewest parameters (at least one); new SocketException makes the object with the constructor without parameters; the others: (new SocketException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of IOException are inherited.

SocketImpl#

abstract · extends Object · java.net.SocketImpl

Implements: SocketOptions

Fields

NameTypeAccessIn Ring
TCP_NODELAYintconstant · statico.TCP_NODELAY
SO_BINDADDRintconstant · statico.SO_BINDADDR
SO_REUSEADDRintconstant · statico.SO_REUSEADDR
SO_REUSEPORTintconstant · statico.SO_REUSEPORT
SO_BROADCASTintconstant · statico.SO_BROADCAST
IP_MULTICAST_IFintconstant · statico.IP_MULTICAST_IF
IP_MULTICAST_IF2intconstant · statico.IP_MULTICAST_IF2
IP_MULTICAST_LOOPintconstant · statico.IP_MULTICAST_LOOP
IP_TOSintconstant · statico.IP_TOS
SO_LINGERintconstant · statico.SO_LINGER
SO_TIMEOUTintconstant · statico.SO_TIMEOUT
SO_SNDBUFintconstant · statico.SO_SNDBUF
SO_RCVBUFintconstant · statico.SO_RCVBUF
SO_KEEPALIVEintconstant · statico.SO_KEEPALIVE
SO_OOBINLINEintconstant · statico.SO_OOBINLINE

Methods

MethodRing callJava overloads
getOptiongetOption(optID)Object getOption(int optID)
setOptionsetOption(optID,value)void setOption(int optID, Object value)

The methods and fields of Object are inherited.

SocketImplFactory#

interface · java.net.SocketImplFactory

Methods

MethodRing callJava overloads
createSocketImplcreateSocketImpl()SocketImpl createSocketImpl()

SocketOption#

interface · java.net.SocketOption

Methods

MethodRing callJava overloads
namename()String name()
typetype()Class type()

SocketOptions#

interface · java.net.SocketOptions

Fields

NameTypeAccessIn Ring
TCP_NODELAYintconstant · statico.TCP_NODELAY
SO_BINDADDRintconstant · statico.SO_BINDADDR
SO_REUSEADDRintconstant · statico.SO_REUSEADDR
SO_REUSEPORTintconstant · statico.SO_REUSEPORT
SO_BROADCASTintconstant · statico.SO_BROADCAST
IP_MULTICAST_IFintconstant · statico.IP_MULTICAST_IF
IP_MULTICAST_IF2intconstant · statico.IP_MULTICAST_IF2
IP_MULTICAST_LOOPintconstant · statico.IP_MULTICAST_LOOP
IP_TOSintconstant · statico.IP_TOS
SO_LINGERintconstant · statico.SO_LINGER
SO_TIMEOUTintconstant · statico.SO_TIMEOUT
SO_SNDBUFintconstant · statico.SO_SNDBUF
SO_RCVBUFintconstant · statico.SO_RCVBUF
SO_KEEPALIVEintconstant · statico.SO_KEEPALIVE
SO_OOBINLINEintconstant · statico.SO_OOBINLINE

Methods

MethodRing callJava overloads
getOptiongetOption(optID)Object getOption(int optID)
setOptionsetOption(optID,value)void setOption(int optID, Object value)

SocketPermission#

class final · extends Permission · java.net.SocketPermission

Implements: Serializable

Constructors

new SocketPermission(String host, String action)

Ring: new SocketPermission(args) uses the constructor with the fewest parameters (at least one); new SocketPermission makes the object with the constructor without parameters; the others: (new SocketPermission).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Permission are inherited.

SocketTimeoutException#

class · extends InterruptedIOException · java.net.SocketTimeoutException

Constructors

new SocketTimeoutException()
new SocketTimeoutException(String msg)

Ring: new SocketTimeoutException(args) uses the constructor with the fewest parameters (at least one); new SocketTimeoutException makes the object with the constructor without parameters; the others: (new SocketTimeoutException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of InterruptedIOException are inherited.

StandardProtocolFamily#

enum · extends Enum · java.net.StandardProtocolFamily

Implements: ProtocolFamily

Fields

NameTypeAccessIn Ring
INETStandardProtocolFamilyconstant · statico.INET
INET6StandardProtocolFamilyconstant · statico.INET6
UNIXStandardProtocolFamilyconstant · statico.UNIX

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static StandardProtocolFamily valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static StandardProtocolFamily[] values()

The methods and fields of Enum are inherited.

StandardSocketOptions#

class final · extends Object · java.net.StandardSocketOptions

Fields

NameTypeAccessIn Ring
SO_BROADCASTSocketOptionconstant · statico.SO_BROADCAST
SO_KEEPALIVESocketOptionconstant · statico.SO_KEEPALIVE
SO_SNDBUFSocketOptionconstant · statico.SO_SNDBUF
SO_RCVBUFSocketOptionconstant · statico.SO_RCVBUF
SO_REUSEADDRSocketOptionconstant · statico.SO_REUSEADDR
SO_REUSEPORTSocketOptionconstant · statico.SO_REUSEPORT
SO_LINGERSocketOptionconstant · statico.SO_LINGER
IP_TOSSocketOptionconstant · statico.IP_TOS
IP_MULTICAST_IFSocketOptionconstant · statico.IP_MULTICAST_IF
IP_MULTICAST_TTLSocketOptionconstant · statico.IP_MULTICAST_TTL
IP_MULTICAST_LOOPSocketOptionconstant · statico.IP_MULTICAST_LOOP
TCP_NODELAYSocketOptionconstant · statico.TCP_NODELAY

The methods and fields of Object are inherited.

UnixDomainSocketAddress#

class final · extends SocketAddress · java.net.UnixDomainSocketAddress

Methods

MethodRing callJava overloads
getPathgetPath()Path getPath()
ofof(path)static UnixDomainSocketAddress of(Path path)
static UnixDomainSocketAddress of(String pathname)

The methods and fields of SocketAddress are inherited.

UnknownHostException#

class · extends IOException · java.net.UnknownHostException

Constructors

new UnknownHostException()
new UnknownHostException(String message)

Ring: new UnknownHostException(args) uses the constructor with the fewest parameters (at least one); new UnknownHostException makes the object with the constructor without parameters; the others: (new UnknownHostException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of IOException are inherited.

UnknownServiceException#

class · extends IOException · java.net.UnknownServiceException

Constructors

new UnknownServiceException()
new UnknownServiceException(String msg)

Ring: new UnknownServiceException(args) uses the constructor with the fewest parameters (at least one); new UnknownServiceException makes the object with the constructor without parameters; the others: (new UnknownServiceException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of IOException are inherited.

URI#

class final · extends Object · java.net.URI

Implements: Comparable, Serializable

Constructors

new URI(String str)
new URI(String scheme, String ssp, String fragment)
new URI(String scheme, String host, String path, String fragment)
new URI(String scheme, String authority, String path, String query, String fragment)
new URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment)

Ring: new URI(args) uses the constructor with the fewest parameters (at least one); new URI makes the object with the constructor without parameters; the others: (new URI).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
compareTocompareTo(that)int compareTo(URI that)
createcreate(str)static URI create(String str)
getAuthoritygetAuthority()String getAuthority()
getFragmentgetFragment()String getFragment()
getHostgetHost()String getHost()
getPathgetPath()String getPath()
getPortgetPort()int getPort()
getQuerygetQuery()String getQuery()
getRawAuthoritygetRawAuthority()String getRawAuthority()
getRawFragmentgetRawFragment()String getRawFragment()
getRawPathgetRawPath()String getRawPath()
getRawQuerygetRawQuery()String getRawQuery()
getRawSchemeSpecificPartgetRawSchemeSpecificPart()String getRawSchemeSpecificPart()
getRawUserInfogetRawUserInfo()String getRawUserInfo()
getSchemegetScheme()String getScheme()
getSchemeSpecificPartgetSchemeSpecificPart()String getSchemeSpecificPart()
getUserInfogetUserInfo()String getUserInfo()
isAbsoluteisAbsolute()boolean isAbsolute()
isOpaqueisOpaque()boolean isOpaque()
normalizenormalize()URI normalize()
parseServerAuthorityparseServerAuthority()URI parseServerAuthority()
relativizerelativize(uri)URI relativize(URI uri)
resolveresolve(str)URI resolve(String str)
URI resolve(URI uri)
toASCIIStringtoASCIIString()String toASCIIString()
toURLtoURL()URL toURL()

The methods and fields of Object are inherited.

URISyntaxException#

class · extends Exception · java.net.URISyntaxException

Constructors

new URISyntaxException(String input, String reason)
new URISyntaxException(String input, String reason, int index)

Ring: new URISyntaxException(args) uses the constructor with the fewest parameters (at least one); new URISyntaxException makes the object with the constructor without parameters; the others: (new URISyntaxException).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getIndexgetIndex()int getIndex()
getInputgetInput()String getInput()
getReasongetReason()String getReason()

The methods and fields of Exception are inherited.

URL#

class final · extends Object · java.net.URL

Implements: Serializable

Constructors

new URL(String spec)
new URL(URL context, String spec)
new URL(URL context, String spec, URLStreamHandler handler)
new URL(String protocol, String host, String file)
new URL(String protocol, String host, int port, String file)
new URL(String protocol, String host, int port, String file, URLStreamHandler handler)

Ring: new URL(args) uses the constructor with the fewest parameters (at least one); new URL makes the object with the constructor without parameters; the others: (new URL).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@getContent@getContent(classes)Object getContent(Class[] classes)
@openConnection@openConnection(proxy)URLConnection openConnection(Proxy proxy)
getAuthoritygetAuthority()String getAuthority()
getContentgetContent()Object getContent()
getDefaultPortgetDefaultPort()int getDefaultPort()
getFilegetFile()String getFile()
getHostgetHost()String getHost()
getPathgetPath()String getPath()
getPortgetPort()int getPort()
getProtocolgetProtocol()String getProtocol()
getQuerygetQuery()String getQuery()
getRefgetRef()String getRef()
getUserInfogetUserInfo()String getUserInfo()
ofof(uri,handler)static URL of(URI uri, URLStreamHandler handler)
openConnectionopenConnection()URLConnection openConnection()
openStreamopenStream()InputStream openStream()
sameFilesameFile(other)boolean sameFile(URL other)
setURLStreamHandlerFactorysetURLStreamHandlerFactory(fac)static void setURLStreamHandlerFactory(URLStreamHandlerFactory fac)
toExternalFormtoExternalForm()String toExternalForm()
toURItoURI()URI toURI()

The methods and fields of Object are inherited.

URLClassLoader#

class · extends SecureClassLoader · java.net.URLClassLoader

Implements: Closeable

Constructors

new URLClassLoader(URL[] urls)
new URLClassLoader(URL[] urls, ClassLoader parent)
new URLClassLoader(String name, URL[] urls, ClassLoader parent)
new URLClassLoader(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory)
new URLClassLoader(String name, URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory)

Ring: new URLClassLoader(args) uses the constructor with the fewest parameters (at least one); new URLClassLoader makes the object with the constructor without parameters; the others: (new URLClassLoader).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
closeclose()void close()
findResourcefindResource(name)URL findResource(String name)
findResourcesfindResources(name)Enumeration findResources(String name)
getURLsgetURLs()URL[] getURLs()
newInstancenewInstance(urls)
newInstance([urls,parent])
newInstance([ :urls = v, :parent = v ])
static URLClassLoader newInstance(URL[] urls)
static URLClassLoader newInstance(URL[] urls, ClassLoader parent)

The methods and fields of SecureClassLoader are inherited.

URLConnection#

abstract · extends Object · java.net.URLConnection

Methods

MethodRing callJava overloads
@getContent@getContent(classes)Object getContent(Class[] classes)
@getDefaultUseCaches@getDefaultUseCaches(protocol)static boolean getDefaultUseCaches(String protocol)
addRequestPropertyaddRequestProperty(key,value)void addRequestProperty(String key, String value)
connectconnect()void connect()
getAllowUserInteractiongetAllowUserInteraction()boolean getAllowUserInteraction()
getConnectTimeoutgetConnectTimeout()int getConnectTimeout()
getContentgetContent()Object getContent()
getContentEncodinggetContentEncoding()String getContentEncoding()
getContentLengthgetContentLength()int getContentLength()
getContentLengthLonggetContentLengthLong()long getContentLengthLong()
getContentTypegetContentType()String getContentType()
getDategetDate()long getDate()
getDefaultAllowUserInteractiongetDefaultAllowUserInteraction()static boolean getDefaultAllowUserInteraction()
getDefaultRequestPropertygetDefaultRequestProperty(key)static String getDefaultRequestProperty(String key)
getDefaultUseCachesgetDefaultUseCaches()boolean getDefaultUseCaches()
getDoInputgetDoInput()boolean getDoInput()
getDoOutputgetDoOutput()boolean getDoOutput()
getExpirationgetExpiration()long getExpiration()
getFileNameMapgetFileNameMap()static FileNameMap getFileNameMap()
getHeaderFieldgetHeaderField(n)String getHeaderField(int n)
String getHeaderField(String name)
getHeaderFieldDategetHeaderFieldDate(name,defaultValue)long getHeaderFieldDate(String name, long defaultValue)
getHeaderFieldIntgetHeaderFieldInt(name,defaultValue)int getHeaderFieldInt(String name, int defaultValue)
getHeaderFieldKeygetHeaderFieldKey(n)String getHeaderFieldKey(int n)
getHeaderFieldLonggetHeaderFieldLong(name,defaultValue)long getHeaderFieldLong(String name, long defaultValue)
getHeaderFieldsgetHeaderFields()Map getHeaderFields()
getIfModifiedSincegetIfModifiedSince()long getIfModifiedSince()
getInputStreamgetInputStream()InputStream getInputStream()
getLastModifiedgetLastModified()long getLastModified()
getOutputStreamgetOutputStream()OutputStream getOutputStream()
getPermissiongetPermission()Permission getPermission()
getReadTimeoutgetReadTimeout()int getReadTimeout()
getRequestPropertiesgetRequestProperties()Map getRequestProperties()
getRequestPropertygetRequestProperty(key)String getRequestProperty(String key)
getURLgetURL()URL getURL()
getUseCachesgetUseCaches()boolean getUseCaches()
guessContentTypeFromNameguessContentTypeFromName(fname)static String guessContentTypeFromName(String fname)
guessContentTypeFromStreamguessContentTypeFromStream(is)static String guessContentTypeFromStream(InputStream is)
setAllowUserInteractionsetAllowUserInteraction(allowuserinteraction)void setAllowUserInteraction(boolean allowuserinteraction)
setConnectTimeoutsetConnectTimeout(timeout)void setConnectTimeout(int timeout)
setContentHandlerFactorysetContentHandlerFactory(fac)static void setContentHandlerFactory(ContentHandlerFactory fac)
setDefaultAllowUserInteractionsetDefaultAllowUserInteraction(defaultallowuserinteraction)static void setDefaultAllowUserInteraction(boolean defaultallowuserinteraction)
setDefaultRequestPropertysetDefaultRequestProperty(key,value)static void setDefaultRequestProperty(String key, String value)
setDefaultUseCachessetDefaultUseCaches(defaultusecaches)
setDefaultUseCaches([protocol,defaultVal])
setDefaultUseCaches([ :protocol = v, :defaultVal = v ])
void setDefaultUseCaches(boolean defaultusecaches)
static void setDefaultUseCaches(String protocol, boolean defaultVal)
setDoInputsetDoInput(doinput)void setDoInput(boolean doinput)
setDoOutputsetDoOutput(dooutput)void setDoOutput(boolean dooutput)
setFileNameMapsetFileNameMap(map)static void setFileNameMap(FileNameMap map)
setIfModifiedSincesetIfModifiedSince(ifmodifiedsince)void setIfModifiedSince(long ifmodifiedsince)
setReadTimeoutsetReadTimeout(timeout)void setReadTimeout(int timeout)
setRequestPropertysetRequestProperty(key,value)void setRequestProperty(String key, String value)
setUseCachessetUseCaches(usecaches)void setUseCaches(boolean usecaches)

The methods and fields of Object are inherited.

URLDecoder#

class final · extends Object · java.net.URLDecoder

Methods

MethodRing callJava overloads
decodedecode(s)
decode([s,charset])
decode([ :s = v, :charset = v ])
static String decode(String s)
static String decode(String s, Charset charset)
static String decode(String s, String enc)

The methods and fields of Object are inherited.

URLEncoder#

class final · extends Object · java.net.URLEncoder

Methods

MethodRing callJava overloads
encodeencode(s)
encode([s,charset])
encode([ :s = v, :charset = v ])
static String encode(String s)
static String encode(String s, Charset charset)
static String encode(String s, String enc)

The methods and fields of Object are inherited.

URLPermission#

class final · extends Permission · java.net.URLPermission

Constructors

new URLPermission(String url)
new URLPermission(String url, String actions)

Ring: new URLPermission(args) uses the constructor with the fewest parameters (at least one); new URLPermission makes the object with the constructor without parameters; the others: (new URLPermission).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Permission are inherited.

URLStreamHandler#

abstract · extends Object · java.net.URLStreamHandler

The methods and fields of Object are inherited.

URLStreamHandlerFactory#

interface · java.net.URLStreamHandlerFactory

Methods

MethodRing callJava overloads
createURLStreamHandlercreateURLStreamHandler(protocol)URLStreamHandler createURLStreamHandler(String protocol)
RingJava - use Java classes and methods from Ring programs.