Examples of ConditionalResponse


Examples of org.cruxframework.crux.core.server.rest.core.dispatch.ConditionalResponse

    }
  }

  private static void writeConditionalResponse(HttpResponse response, MethodReturn methodReturn, HttpServletResponseHeaders outputHeaders)
  {
    ConditionalResponse conditionalResponse = methodReturn.getConditionalResponse();
    response.setStatus(conditionalResponse.getStatus());

    EntityTag etag = conditionalResponse.getEtag();
    long dateModified = conditionalResponse.getLastModified();
    CacheInfo cacheInfo = methodReturn.getCacheInfo();

    if (cacheInfo != null)
    {
      writeCacheHeaders(response, cacheInfo, etag, dateModified, methodReturn.isEtagGenerationEnabled());
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.