Examples of ResourceState


Examples of org.cruxframework.crux.core.server.rest.state.ResourceStateHandler.ResourceState

   * @return
   */
  private MethodReturn handleUncacheableOperation()
  {
    ResourceStateHandler resourceStateHandler = ResourceStateConfig.getResourceStateHandler();
    ResourceState resourceState = resourceStateHandler.get(key);
    ConditionalResponse conditionalResponse = evaluatePreconditions(resourceState == null || resourceState.isExpired()?null:resourceState);
    if (conditionalResponse == null)
    {
      return null;
    }
    return new MethodReturn(resourceMethod.hasReturnType, null, null, resourceMethod.cacheInfo, conditionalResponse, resourceMethod.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.