Package org.apache.abdera.protocol.server.impl

Examples of org.apache.abdera.protocol.server.impl.AbstractResponseContext


 
  public ResponseContext getService(
    RequestContext request) {
      Abdera abdera = request.getAbdera();
      Document<Service> service = get_service_doc(abdera);
      AbstractResponseContext rc;
      rc = new BaseResponseContext<Document<Service>>(service);
      rc.setEntityTag(service_etag);
      return rc;
  }
View Full Code Here


 
  public ResponseContext getFeed(
    RequestContext request) {
      Abdera abdera = request.getAbdera();
      Document<Feed> feed = get_feed_doc(abdera);
      AbstractResponseContext rc;
      rc = new BaseResponseContext<Document<Feed>>(feed);
      rc.setEntityTag(calculateEntityTag(feed.getRoot()));
      return rc;
  }
View Full Code Here

      if (entry != null) {
        Feed feed = entry.getParentElement();
        entry = (Entry) entry.clone();
        entry.setSource(feed.getAsSource());
        Document<Entry> entry_doc = entry.getDocument();
        AbstractResponseContext rc = new BaseResponseContext<Document<Entry>>(entry_doc);
        rc.setEntityTag(calculateEntityTag(entry));
        return rc;
      } else {
        return new EmptyResponseContext(404);
      }
  }
View Full Code Here

TOP

Related Classes of org.apache.abdera.protocol.server.impl.AbstractResponseContext

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.