Ignore:
Timestamp:
2013-01-27T19:11:23+01:00 (11 years ago)
Author:
Don-vip
Message:

fix #8148 - Improve remote control handlers (requests validation, display of confirmation messages, robustness, javadoc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImageryHandler.java

    r5445 r5680  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.io.UnsupportedEncodingException;
    7 import java.net.URLDecoder;
    86import java.util.HashMap;
    97
     
    5957                imgInfo.setDefaultMinZoom(Integer.parseInt(min_zoom));
    6058            } catch (NumberFormatException e) {
    61                 System.err.println(e.getMessage());
     59                System.err.println("NumberFormatException ("+e.getMessage()+")");
    6260            }
    6361        }
     
    6765                imgInfo.setDefaultMaxZoom(Integer.parseInt(max_zoom));
    6866            } catch (NumberFormatException e) {
    69                 System.err.println(e.getMessage());
     67                System.err.println("NumberFormatException ("+e.getMessage()+")");
    7068            }
    7169        }
     
    102100    }
    103101
    104     private String decodeParam(String param) {
    105         try {
    106             return URLDecoder.decode(param, "UTF-8");
    107         } catch (UnsupportedEncodingException e) {
    108             throw new RuntimeException();
    109         }
     102    @Override
     103    protected void validateRequest() throws RequestHandlerBadRequestException {
     104        // Nothing to do
    110105    }
    111106}
Note: See TracChangeset for help on using the changeset viewer.