public Supplier<Pair<Integer, JsonNode>> handleDelete() { return currentState.handleDelete(this); } }
public Supplier<Pair<Integer, JsonNode>> handleGet() { return currentState.handleGet(this); }
public Supplier<Pair<Integer, JsonNode>> handlePatch() { return currentState.handlePatch(this); }
public void handle(SubCollectionReadEntityContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }
public Supplier<Pair<Integer, JsonNode>> handlePost() { return currentState.handlePost(this); }
/** * Construct PATCH response. * * @param record a resource that has been updated * @param stateContext a state that contains reference to request scope where we can get status code for update * @return a supplier of PATH response */ protected static Supplier<Pair<Integer, JsonNode>> constructPatchResponse( PersistentResource record, StateContext stateContext) { RequestScope requestScope = stateContext.getRequestScope(); int updateStatusCode = requestScope.getUpdateStatusCode(); return () -> Pair.of( updateStatusCode, updateStatusCode == HttpStatus.SC_NO_CONTENT ? null : getResponseBody(record, requestScope) ); }
public void handle(RootCollectionRelationshipContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }
public Supplier<Pair<Integer, JsonNode>> handlePost() { return currentState.handlePost(this); }
/** * Construct PATCH response. * * @param record a resource that has been updated * @param stateContext a state that contains reference to request scope where we can get status code for update * @return a supplier of PATH response */ protected static Supplier<Pair<Integer, JsonNode>> constructPatchResponse( PersistentResource record, StateContext stateContext) { RequestScope requestScope = stateContext.getRequestScope(); int updateStatusCode = requestScope.getUpdateStatusCode(); return () -> Pair.of( updateStatusCode, updateStatusCode == HttpStatus.SC_NO_CONTENT ? null : getResponseBody(record, requestScope) ); }
public void handle(SubCollectionReadCollectionContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }
public Supplier<Pair<Integer, JsonNode>> handleGet() { return currentState.handleGet(this); }
public Supplier<Pair<Integer, JsonNode>> handlePatch() { return currentState.handlePatch(this); }
public Supplier<Pair<Integer, JsonNode>> handleDelete() { return currentState.handleDelete(this); } }
public void handle(SubCollectionSubCollectionContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }
public void handle(RootCollectionLoadEntityContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }
public void handle(RootCollectionSubCollectionContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }
public void handle(SubCollectionRelationshipContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }
public void handle(RootCollectionLoadEntitiesContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }
public void handle(RootCollectionLoadEntityContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }
public void handle(RootCollectionLoadEntitiesContext ctx) { if (log.isDebugEnabled()) { log.debug("{}", ctx.toStringTree()); } currentState.handle(this, ctx); }