Package org.apache.abdera.protocol.server.context

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


                          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

  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

  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

TOP

Related Classes of org.apache.abdera.protocol.server.context.ResponseContextException

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.