Examples of ResponseContextException


Examples of org.apache.abdera.protocol.server.context.ResponseContextException

            transactionStart(transaction, request);
            response = processor.process(request, wm, adapter);
            response = response != null ? response : processExtensionRequest(request, adapter);           
        } catch (Throwable e) {
            if (e instanceof ResponseContextException) {
                ResponseContextException rce = (ResponseContextException) e;
                if (rce.getStatusCode() >= 400 && rce.getStatusCode() < 500) {
                    // don't report routine 4xx HTTP errors
                    log.info(e);
                } else {
                    log.error(e);
                }
View Full Code Here

Examples of org.apache.abdera.protocol.server.context.ResponseContextException

    MimeType contentType,
    String slug,
    InputStream inputStream,
    RequestContext request)
      throws ResponseContextException {
    throw new ResponseContextException(ProviderHelper.notallowed(request));
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.context.ResponseContextException

   */
  public void deleteMedia(
    String resourceName,
    RequestContext request)
      throws ResponseContextException {
    throw new ResponseContextException(ProviderHelper.notsupported(request));
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.context.ResponseContextException

    Document<Entry> entry_doc;
    try {
      entry_doc = (Document<Entry>)request.getDocument(parser).clone();
    } catch (ParseException e) {
      throw new ResponseContextException(400, e);
    } catch (IOException e) {
      throw new ResponseContextException(500, e);
    }
    if (entry_doc == null) {
      return null;
    }
    return entry_doc.getRoot();
View Full Code Here

Examples of org.apache.abdera.protocol.server.context.ResponseContextException

  @Override
  public String getName(Node entry) throws ResponseContextException {
    try {
      return entry.getName();
    } catch (RepositoryException e) {
      throw new ResponseContextException(500, e);
    }
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.context.ResponseContextException

                          Content content, RequestContext request) throws ResponseContextException {
    Session session = getSession(request);
    try {
      mapEntryToNode(entry, title, summary, updated, authors, content, session);
    } catch (RepositoryException e) {
      throw new ResponseContextException(500, e);
    }
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.context.ResponseContextException

  public static String getStringOrNull(Node node, String propName) throws ResponseContextException  {
    try {
      Value v = getValueOrNull(node, propName);
      return (v != null) ? v.getString() : null;
    } catch (RepositoryException e) {
      throw new ResponseContextException(500, e);
    }
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.context.ResponseContextException

  public static Calendar getDateOrNull(Node node, String propName) throws ResponseContextException {
    try {
      Value v = getValueOrNull(node, propName);
      return (v != null) ? v.getDate() : null;
    } catch (RepositoryException e) {
      throw new ResponseContextException(500, e);
    }
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.context.ResponseContextException

    try {
      Session session = (Session) sessionPool.get(request);

      request.setAttribute(Scope.REQUEST, SESSION_KEY, session);
    } catch (Exception e) {
      throw new ResponseContextException(500, e);
    }
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.context.ResponseContextException

  @Override
  public boolean isMediaEntry(Node entry) throws ResponseContextException {
    try {
      return entry.hasProperty(MEDIA);
    } catch (RepositoryException e) {
      throw new ResponseContextException(500, e);
    }
  }
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.