X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Forg%2Fbiojava%2Fdasobert%2Fdas%2FDAS_Entry_Points_Handler.java;fp=src%2Forg%2Fbiojava%2Fdasobert%2Fdas%2FDAS_Entry_Points_Handler.java;h=9afa6219ac74f4b429534e1057f7a3c82f5f7768;hb=ac8acb905e84708b759ae1e87eaf6691d9376d57;hp=0000000000000000000000000000000000000000;hpb=28e94481f73e48d9511df56c0fe592426affadcd;p=jalview.git diff --git a/src/org/biojava/dasobert/das/DAS_Entry_Points_Handler.java b/src/org/biojava/dasobert/das/DAS_Entry_Points_Handler.java new file mode 100755 index 0000000..9afa621 --- /dev/null +++ b/src/org/biojava/dasobert/das/DAS_Entry_Points_Handler.java @@ -0,0 +1,58 @@ +/* + * BioJava development code + * + * This code may be freely distributed and modified under the + * terms of the GNU Lesser General Public Licence. This should + * be distributed with the code. If you do not have a copy, + * see: + * + * http://www.gnu.org/copyleft/lesser.html + * + * Copyright for this code is held jointly by the individual + * authors. These should be listed in @author doc comments. + * + * For more information on the BioJava project and its aims, + * or to join the biojava-l mailing list, visit the home page + * at: + * + * http://www.biojava.org/ + * + * Created on 19.03.2004 + * @author Andreas Prlic + * + */ +package org.biojava.dasobert.das ; + +import org.xml.sax.helpers.DefaultHandler; +import org.xml.sax.Attributes; + + +/** a class to parse the reponse of a DAS - types request + */ +public class DAS_Entry_Points_Handler extends DefaultHandler { + + String version ; + + public DAS_Entry_Points_Handler() { + super(); + + version = null; + } + + public void startElement (String uri, String name, String qName, Attributes atts){ + if ( qName.equals("DASEP")) { + + } else if ( qName.equals("ENTRY_POINTS")) { + + String v = atts.getValue("version"); + version = v; + } + } + + /** returns true if the server returns an entry points */ + public String getVersion() { + return version; + } + +} +