Examples of IConditionalGet


Examples of org.rssowl.core.persist.IConditionalGet

        query.descend("fLink").constrain(condGet.getLink().toString()); //$NON-NLS-1$

        List<IConditionalGet> result = query.execute();
        assertEquals(1, result.size());

        IConditionalGet otherCondGet = result.get(0);
        assertEquals(condGet.getIfModifiedSince(), otherCondGet.getIfModifiedSince());
        assertEquals(condGet.getIfNoneMatch(), otherCondGet.getIfNoneMatch());
      }

      /* Assert EntityIdsByEventType */
      EntityIdsByEventType eventType = db.query(EntityIdsByEventType.class).get(0);
      EntityIdsByEventType otherEventType = defragmentedDb.query(EntityIdsByEventType.class).get(0);
View Full Code Here

Examples of org.rssowl.core.persist.IConditionalGet

    String ifNoneMatch = null;
    if (inS instanceof IConditionalGetCompatible) {
      ifModifiedSince = ((IConditionalGetCompatible) inS).getIfModifiedSince();
      ifNoneMatch = ((IConditionalGetCompatible) inS).getIfNoneMatch();
    }
    IConditionalGet conditionalGet = Owl.getModelFactory().createConditionalGet(ifModifiedSince, feedUrl, ifNoneMatch);

    Map<Object, Object> conProperties = new HashMap<Object, Object>();
    ifModifiedSince = conditionalGet.getIfModifiedSince();
    if (ifModifiedSince != null)
      conProperties.put(IConnectionPropertyConstants.IF_MODIFIED_SINCE, ifModifiedSince);

    ifNoneMatch = conditionalGet.getIfNoneMatch();
    if (ifNoneMatch != null)
      conProperties.put(IConnectionPropertyConstants.IF_NONE_MATCH, ifNoneMatch);

    try {
      Owl.getConnectionService().getHandler(feed.getLink()).openStream(feed.getLink(), null, conProperties);
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.