Fork me on GitHub

CPD Results

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

Duplications

File Line
fr/paris/lutece/plugins/gis/modules/address/service/WebServiceAddressService.java 99
fr/paris/lutece/plugins/gis/modules/address/service/WebServiceAddressService.java 190
    public Set<fr.paris.lutece.plugins.address.business.jaxb.wsSearchAdresse.Adresse> searchAddress( HttpServletRequest request, String address, String SRID) 
    		throws RemoteException
    {
        String responseWebService = null;
        AdresseService adresseService = new AdresseServiceLocator(  );

        try
        {
            URL urlWS = null;

            Stub portType = null;

            String strUrlWS = this.getUrlWS(  );
            if ( (  strUrlWS == null ) || strUrlWS.equals( "" ) )
            {
                portType = (Stub) adresseService.getAdresseServiceHttpPort(  );
            }
            else
            {
                try
                {
                    urlWS = new URL( strUrlWS );
                }
                catch ( MalformedURLException e )
                {
                    AppLogService.error( e.getMessage(  ), e );
                }

                portType = (Stub) adresseService.getAdresseServiceHttpPort( urlWS );
            }

            portType.setUsername( getUserName(  ) );
            portType.setPassword( getPassword(  ) );

            setTimeout( portType );

            responseWebService = ( (AdresseServicePortType) portType ).searchAddress( getDefaultCity(  ),