Package org.gatein.pc.api.invocation.response

Examples of org.gatein.pc.api.invocation.response.RevalidateMarkupResponse


      }

      //
      if (cacheControl != null && cacheControl.useCachedContent())
      {
         return new RevalidateMarkupResponse(cc);
      }
      else
      {
         return createMarkupResponse(
            getProperties(false),
View Full Code Here


               fragment = (ContentResponse)response;
               control = fragment.getCacheControl();
            }
            else if (response instanceof RevalidateMarkupResponse)
            {
               RevalidateMarkupResponse revalidate = (RevalidateMarkupResponse)response;
               control = revalidate.getCacheControl();
            }

            // Compute expiration time, i.e when it will expire
            long expirationTimeMillis = 0;
            String validationToken = null;
View Full Code Here

      }

      //
      if (cacheControl != null && cacheControl.useCachedContent())
      {
         return new RevalidateMarkupResponse(cc);
      }
      else
      {
         ResponseProperties props = getProperties(false);
         Map<String, Object> attrs = preq.attributes.getAttributeMap();
View Full Code Here

      }

      //
      if (cacheControl != null && cacheControl.useCachedContent())
      {
         return new RevalidateMarkupResponse(cc);
      }
      else
      {
         return createMarkupResponse(
            getProperties(false),
View Full Code Here

            // If we had a cached content that was revalidated we substitute
            if (response instanceof RevalidateMarkupResponse && cachedContent != null)
            {
               // Normally we receive such response when the validation token was set which implies we have an existing content
               // We substitute with the appropriate content response
               RevalidateMarkupResponse revalidate = (RevalidateMarkupResponse)response;
               CacheControl control = revalidate.getCacheControl();
               if (cachedContent instanceof FragmentResponse)
               {
                  response = new FragmentResponse((FragmentResponse)cachedContent, control);
               }
               else
View Full Code Here

TOP

Related Classes of org.gatein.pc.api.invocation.response.RevalidateMarkupResponse

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.