Package com.Ostermiller.util

Examples of com.Ostermiller.util.CGIParser


            request.setExtraRequestData(SRWDatabase.makeExtraRequestDataType(extraData.toString()));
        return request;
    }

    public static Object sruToObj(String sruRequest) throws IOException {
        CGIParser parser=new CGIParser(sruRequest, "UTF-8");
        if(parser.getParameter("query")!=null)
            return sruSearchToObj(parser);
        if(parser.getParameter("scanClause")!=null)
            return sruScanToObj(parser);
        throw new IllegalArgumentException("SRU requests must contain either a 'query' or 'scanTerm' parameter");
    }
View Full Code Here

TOP

Related Classes of com.Ostermiller.util.CGIParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.