Examples of BaseResponseContext


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

            entry,
            abdera.getFactory().newUuidUri());
          Feed feed = getFeedDocument(request).getRoot();
          feed.insertEntry(entry);
          feed.setUpdated(new Date());
          BaseResponseContext rc =
            (BaseResponseContext) ProviderHelper.returnBase(
              entry_doc, 201, entry.getEdited());
          return
            rc.setLocation(
                ProviderHelper.resolveBase(request).resolve(
                  entry.getEditLinkResolvedHref()).toString())
              .setContentLocation(rc.getLocation().toString())
              .setEntityTag(ProviderHelper.calculateEntityTag(entry));
        } else {
          return ProviderHelper.badrequest(request);
        }
      } catch (ParseException pe) {
View Full Code Here

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

          entry.getIdElement().setValue(factory.newUuidUri());
          entry.addLink("feed/" + entry.getId().toString(), "edit");
          Feed feed = get_feed_doc(abdera).getRoot();
          feed.insertEntry(entry);
          feed.setUpdated(new Date());
          BaseResponseContext rc = new BaseResponseContext(entry);
          IRI baseUri = resolveBase(request);
          rc.setLocation(baseUri.resolve(entry.getEditLinkResolvedHref()).toString());
          rc.setContentLocation(rc.getLocation().toString());
          rc.setEntityTag(calculateEntityTag(entry));
          rc.setStatus(201);
          return rc;
        } else {
          return new EmptyResponseContext(400);
        }
      } catch (ParseException pe) {
View Full Code Here

Examples of org.apache.abdera.protocol.server.provider.BaseResponseContext

          entry.getIdElement().setValue(factory.newUuidUri());
          entry.addLink("feed/" + entry.getId().toString(), "edit");
          Feed feed = get_feed_doc(abdera).getRoot();
          feed.insertEntry(entry);
          feed.setUpdated(new Date());
          BaseResponseContext rc = new BaseResponseContext(entry);
          IRI baseUri = resolveBase(request);
          rc.setLocation(baseUri.resolve(entry.getEditLinkResolvedHref()).toString());
          rc.setContentLocation(rc.getLocation().toString());
          rc.setEntityTag(calculateEntityTag(entry));
          rc.setStatus(201);
          return rc;
        } else {
          return new EmptyResponseContext(400);
        }
      } catch (ParseException pe) {
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.