CodeQL library for Java
Search

Module Networking

Definitions related to java.net.*.

Import path

import semmle.code.java.frameworks.Networking

Imports

Type

Provides classes and predicates for working with Java types.

Classes

PrivateHostName

A string matching private host names of IPv4 and IPv6, which only matches the host portion therefore checking for port is not necessary. Several examples are localhost, reserved IPv4 IP addresses including 127.0.0.1, 10.x.x.x, 172.16.x,x, 192.168.x,x, and reserved IPv6 addresses including [0:0:0:0:0:0:0:1] and [::1]

SocketGetInputStreamMethod

The method java.net.Socket::getInputStream.

TypeSocket

The type java.net.Socket.

TypeUri

The type java.net.URI.

TypeUrl

The type java.net.URL.

TypeUrlConnection

The type java.net.URLConnection.

URLConnectionGetInputStreamMethod

The method java.net.URLConnection::getInputStream.

UriConstructorCall

A java.net.URI constructor call.

UriCreate

A call to java.net.URI::create.

UriCreation

A method or constructor call that returns a new URI.

UrlConstructorCall

A java.net.URL constructor call.

UrlOpenConnectionMethod

The method java.net.URL::openConnection.

UrlOpenStreamMethod

The method java.net.URL::openStream.