WMS

The gt-wms extension offers a full featured web map server client. This allows your application to connect to a range of web map services, review the capabilities and issue requests such as “GetMap” and “GetInfo”.

The client code takes care of version negotiation, and even a few server specific wrinkles for you.

Maven:

<dependency>
  <groupId>org.geotools</groupId>
  <artifactId>gt-wms</artifactId>
  <version>${geotools.version}</version>
</dependency>

References: