CPD Results

The following document contains the results of PMD's CPD 4.3.

Duplications

FileLine
org/deegree/protocol/wmts/client/WMTSClient.java185
org/deegree/protocol/wmts/client/WMTSClient.java218
        Map<String, String> kvp = buildGetTileKvpMap( request );
        if ( request.getOverriddenParameters() != null ) {
            for ( Entry<String, String> e : request.getOverriddenParameters().entrySet() ) {
                if ( kvp.containsKey( e.getKey().toLowerCase() ) ) {
                    kvp.put( e.getKey().toLowerCase(), e.getValue() );
                } else
                    kvp.put( e.getKey(), e.getValue() );
            }
        }
        URL endPoint = getGetUrl( WMTSConstants.WMTSRequestType.GetTile.name() );
        OwsHttpResponse response = httpClient.doGet( endPoint, kvp, null );
        response.assertHttpStatus200();
        response.assertNoXmlContentTypeAndExceptionReport();
        return new GetTileResponse( response );