Package org.apache.abdera.ext.opensearch.server.impl

Examples of org.apache.abdera.ext.opensearch.server.impl.SimpleOpenSearchUrlInfo


    }

    protected OpenSearchInfo createOpenSearchInfo() throws Exception {
        SimpleOpenSearchInfo osInfo = new SimpleOpenSearchInfo();
        SimpleOpenSearchQueryInfo osQueryInfo = new SimpleOpenSearchQueryInfo();
        SimpleOpenSearchUrlInfo osUrlInfo1 = new SimpleOpenSearchUrlInfo();
        SimpleOpenSearchUrlInfo osUrlInfo2 = new SimpleOpenSearchUrlInfo();
        SimpleOpenSearchUrlParameterInfo osParamInfo1 = new SimpleOpenSearchUrlParameterInfo();
        SimpleOpenSearchUrlParameterInfo osParamInfo2 = new SimpleOpenSearchUrlParameterInfo();
       
        osInfo.setShortName(SHORT_NAME);
        osInfo.setDescription(DESCRIPTION);
        osInfo.setTags(TAG1, TAG2);
       
        osQueryInfo.setRole(Query.Role.EXAMPLE);
        osQueryInfo.setSearchTerms(QUERY_TERMS);
       
        osInfo.setQueries(osQueryInfo);
       
        osUrlInfo1.setSearchPath(SEARCH_PATH_1);
        osUrlInfo2.setSearchPath(SEARCH_PATH_2);
       
        osParamInfo1.setName(TEMPLATE_PARAM_1_NAME);
        osParamInfo1.setValue(TEMPLATE_PARAM_1_VALUE);
       
        osParamInfo2.setName(TEMPLATE_PARAM_2_NAME);
        osParamInfo2.setValue(TEMPLATE_PARAM_2_VALUE);
        osParamInfo2.setOptional(true);
       
        osUrlInfo1.setSearchParameters(osParamInfo1, osParamInfo2);
        osUrlInfo2.setSearchParameters(osParamInfo1, osParamInfo2);
       
        osInfo.setUrls(osUrlInfo1, osUrlInfo2);
       
        return osInfo;
    }
View Full Code Here


    }

    protected OpenSearchInfo createOpenSearchInfo() throws Exception {
        SimpleOpenSearchInfo osInfo = new SimpleOpenSearchInfo();
        SimpleOpenSearchQueryInfo osQueryInfo = new SimpleOpenSearchQueryInfo();
        SimpleOpenSearchUrlInfo osUrlInfo1 = new SimpleOpenSearchUrlInfo();
        SimpleOpenSearchUrlInfo osUrlInfo2 = new SimpleOpenSearchUrlInfo();
        SimpleOpenSearchUrlParameterInfo osParamInfo1 = new SimpleOpenSearchUrlParameterInfo();
        SimpleOpenSearchUrlParameterInfo osParamInfo2 = new SimpleOpenSearchUrlParameterInfo();

        osInfo.setShortName(SHORT_NAME);
        osInfo.setDescription(DESCRIPTION);
        osInfo.setTags(TAG1, TAG2);

        osQueryInfo.setRole(Query.Role.EXAMPLE);
        osQueryInfo.setSearchTerms(QUERY_TERMS);

        osInfo.setQueries(osQueryInfo);

        osUrlInfo1.setSearchPath(SEARCH_PATH_1);
        osUrlInfo2.setSearchPath(SEARCH_PATH_2);

        osParamInfo1.setName(TEMPLATE_PARAM_1_NAME);
        osParamInfo1.setValue(TEMPLATE_PARAM_1_VALUE);

        osParamInfo2.setName(TEMPLATE_PARAM_2_NAME);
        osParamInfo2.setValue(TEMPLATE_PARAM_2_VALUE);
        osParamInfo2.setOptional(true);

        osUrlInfo1.setSearchParameters(osParamInfo1, osParamInfo2);
        osUrlInfo2.setSearchParameters(osParamInfo1, osParamInfo2);

        osInfo.setUrls(osUrlInfo1, osUrlInfo2);

        return osInfo;
    }
View Full Code Here

TOP

Related Classes of org.apache.abdera.ext.opensearch.server.impl.SimpleOpenSearchUrlInfo

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.