/[schmitzm]/branches/2.4.x/src/skrueger/geotools/io/GsServerSettings.java
ViewVC logotype

Diff of /branches/2.4.x/src/skrueger/geotools/io/GsServerSettings.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1326 by alfonx, Sun Nov 28 21:51:04 2010 UTC revision 1327 by alfonx, Sun Dec 5 17:23:22 2010 UTC
# Line 1  Line 1 
1  package skrueger.geotools.io;  package skrueger.geotools.io;
2    
3    import java.io.IOException;
4    import java.net.URL;
5  import java.util.HashMap;  import java.util.HashMap;
6  import java.util.regex.Pattern;  import java.util.regex.Pattern;
7    
# Line 95  public class GsServerSettings extends Ab Line 97  public class GsServerSettings extends Ab
97    
98                  return serialized.toString();                  return serialized.toString();
99          }          }
100    
101            @Override
102            public boolean isAvailable() {
103                    try {
104                            new URL(getUrl()).openStream().close();
105                            return true;
106                    } catch (IOException e) {
107                            return false;
108                    }
109    
110            }
111  }  }

Legend:
Removed from v.1326  
changed lines
  Added in v.1327

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26