Examples of tearDown()


Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

                log.debug(msg);
            }
            abderaClient.teardown();
        } else {
            String msg = "Resource associated to aspect " + aspect + " on " + resourcePath + ".";
            abderaClient.teardown();
            log.error(msg);
            throw new RegistryException(msg);
        }
    }
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

            if (log.isDebugEnabled()) {
                String msg = "Succeeded in invoking aspect " + aspectName + " on " + resourcePath +
                        " action " + action + ".";
                log.debug(msg);
            }
            abderaClient.teardown();
        } else {
            String msg = "Couldn't invoke aspect " + aspectName + " on " + resourcePath +
                    " action " + action + ".";
            abderaClient.teardown();
            log.error(msg);
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

            }
            abderaClient.teardown();
        } else {
            String msg = "Couldn't invoke aspect " + aspectName + " on " + resourcePath +
                    " action " + action + ".";
            abderaClient.teardown();
            log.error(msg);
            throw new RegistryException(msg);
        }
    }
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

            String[] aspectActions = new String[entries.size()];
            for (int i = 0; i < entries.size(); i++) {
                Entry entry = (Entry) entries.get(i);
                aspectActions[i] = entry.getContent();
            }
            abderaClient.teardown();
            return aspectActions;
        }
        abderaClient.teardown();
        return new String[0];
    }
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

                aspectActions[i] = entry.getContent();
            }
            abderaClient.teardown();
            return aspectActions;
        }
        abderaClient.teardown();
        return new String[0];
    }

    public RegistryContext getRegistryContext() {
        return RegistryContext.getBaseInstance();
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

     */
    public void restore(String path, Reader reader, int timeout) throws RegistryException {
        AbderaClient abderaClient = new AbderaClient(abdera);
        abderaClient.setSocketTimeout(timeout);
        restore(path, reader, abderaClient);
        abderaClient.teardown();
    }

    /**
     * check out the given path as an xml
     *
 
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

     */
    public void dump(String path, int timeout, Writer writer) throws RegistryException {
        AbderaClient abderaClient = new AbderaClient(abdera);
        abderaClient.setSocketTimeout(timeout);
        dump(path, abderaClient, writer);
        abderaClient.teardown();
    }

    // the implementation for dump
    private void restore(String path, Reader reader, AbderaClient abderaClient)
            throws RegistryException {
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

            if (log.isDebugEnabled()) {
                log.debug("Removing comment: " + commentId + " for resourcePath + " + resourcePath +
                        " succeeded." + ", Response Status: " + resp.getStatus() +
                        ", Response Type: " + resp.getType());
            }
            abderaClient.teardown();
        } else {
            String msg = "Removing comment: " + commentId + " for resourcePath + " + resourcePath +
                        " succeeded." + ", Response Status: " + resp.getStatus() +
                    ", Response Type: " + resp.getType();
            abderaClient.teardown();
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

            abderaClient.teardown();
        } else {
            String msg = "Removing comment: " + commentId + " for resourcePath + " + resourcePath +
                        " succeeded." + ", Response Status: " + resp.getStatus() +
                    ", Response Type: " + resp.getType();
            abderaClient.teardown();
            log.error(msg);
            throw new RegistryException(msg);
        }

    }
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.teardown()

                abderaClient.get(baseURI + "/atom" + encodeURL(path) +
                        "?start=" + start + "&pageLen=" + pageSize, getAuthorization());
        if (clientResponse.getType() == Response.ResponseType.CLIENT_ERROR ||
                clientResponse.getType() == Response.ResponseType.SERVER_ERROR) {
            if (clientResponse.getStatus() == 404) {
                abderaClient.teardown();
                throw new ResourceNotFoundException(path);
            }
            abderaClient.teardown();
            throw new RegistryException(clientResponse.getStatusText());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.