Package org.apache.roller.webservices.adminapi.sdk

Examples of org.apache.roller.webservices.adminapi.sdk.EntrySet


            if (wd == null) {
                throw new NotFoundException("ERROR: Unknown weblog handle: " + handle);
            }
           
            WebsiteData[] wds = new WebsiteData[] { wd };
            EntrySet es = toWeblogEntrySet(wds);
           
            mgr.removeWebsite(wd);
            getRoller().flush();           
            CacheManager.invalidate(wd);
           
View Full Code Here


    protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        try {
            Handler handler = Handler.getHandler(req);
            String userName = handler.getUserName();
           
            EntrySet c = handler.processGet();
           
            res.setStatus(HttpServletResponse.SC_OK);           
            res.setContentType("application/xml; charset=utf-8");
            String s = c.toString();
            Writer writer = res.getWriter();
            writer.write(s);           
            writer.close();           
        } catch (HandlerException he) {
            res.sendError(he.getStatus(), he.getMessage());
View Full Code Here

    protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        try {
            Handler handler = Handler.getHandler(req);
            String userName = handler.getUserName();
           
            EntrySet c = handler.processPost(new InputStreamReader(req.getInputStream()));
           
            res.setStatus(HttpServletResponse.SC_CREATED);           
            res.setContentType("application/xml; charset=utf-8");
            String s = c.toString();
            Writer writer = res.getWriter();
            writer.write(s);           
            writer.close();           
        } catch (HandlerException he) {
            res.sendError(he.getStatus(), he.getMessage());
View Full Code Here

    protected void doPut(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        try {
            Handler handler = Handler.getHandler(req);
            String userName = handler.getUserName();
           
            EntrySet c = handler.processPut(new InputStreamReader(req.getInputStream()));
           
            res.setStatus(HttpServletResponse.SC_OK);           
            res.setContentType("application/xml; charset=utf-8");
            String s = c.toString();
            Writer writer = res.getWriter();
            writer.write(s);           
            writer.close();           
        } catch (HandlerException he) {
            res.sendError(he.getStatus(), he.getMessage());
View Full Code Here

    protected void doDelete(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        try {
            Handler handler = Handler.getHandler(req);
            String userName = handler.getUserName();
           
            EntrySet es = handler.processDelete();
           
            res.setStatus(HttpServletResponse.SC_OK);                       
            res.setContentType("application/xml; charset=utf-8");
            String s = es.toString();
            Writer writer = res.getWriter();
            writer.write(s);           
            writer.close();                       
        } catch (HandlerException he) {
            res.sendError(he.getStatus(), he.getMessage());
View Full Code Here

TOP

Related Classes of org.apache.roller.webservices.adminapi.sdk.EntrySet

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.