Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements. See the NOTICE file
  * distributed with this work for additional information
  * regarding copyright ownership. The ASF licenses this file
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License. You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
package org.apache.shindig.gadgets.http;
Service implemented by the container to support content invalidation.
public interface InvalidationService {

Header used to tag the content with its invalidation marker. Suppressed on output
  public static final String INVALIDATION_HEADER = "X-Shindig-Invalidation";

Invalidate a set of cached resources that are part of the application specification itself. This includes gadget specs, manifests and message bundles

uris of content to invalidate
token identifying the calling application
  void invalidateApplicationResources(Set<UriurisSecurityToken token);

Invalidate all cached resources where the specified user ids were used as either the owner or viewer id when a signed or OAuth request was made for the content by the application identified in the security token.

opensocialIds Set of user ids to invalidate authenticated/signed content for
token identifying the calling application
  void invalidateUserResources(Set<StringopensocialIdsSecurityToken token);

Is the specified HttpResponse still valid. If the request is signed or authenticated has its content been invalidated by a call to invalidateUserResource subsequent to the response being cached.
  boolean isValid(HttpRequest requestHttpResponse response);

Mark the HttpResponse prior to caching it so that subsequent calls to isValid can detect if it has been invalidated.
New to GrepCode? Check out our FAQ X