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

CreateSocketMethod

The method javax.net.SocketFactory::createSocket.

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]

SocketConnectMethod

The method javax.net.Socket::connect.

SocketGetInputStreamMethod

The method java.net.Socket::getInputStream.

SocketGetOutputStreamMethod

The method java.net.Socket::getOutputStream.

TypeSocket

The type java.net.Socket.

TypeSocketFactory

The type javax.net.SocketFactory

TypeUri

The type java.net.URI.

TypeUrl

The type java.net.URL.

TypeUrlConnection

The type java.net.URLConnection.

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.

UrlConnectionGetInputStreamMethod

The method java.net.URLConnection::getInputStream.

UrlConstructorCall

A java.net.URL constructor call.

UrlOpenConnectionMethod

The method java.net.URL::openConnection.

UrlOpenStreamMethod

The method java.net.URL::openStream.

Aliases

URLConnectionGetInputStreamMethod

DEPRECATED: Alias for UrlConnectionGetInputStreamMethod