boolean isGET = result.getRequestContext().getRequest().getMethod().equals(ODataRequest.Method.GET);
boolean isGET = result.getRequestContext().getRequest().getMethod().equals(ODataRequest.Method.GET);
protected boolean isDeleteMethod(ODataRequest.Method method) { return ODataRequest.Method.DELETE.equals(method); }
protected boolean isDeleteMethod(ODataRequest.Method method) { return ODataRequest.Method.DELETE.equals(method); }
/** * This method specifies requested method is PATCH or not. * * @param method is ODataRequest.Method * @return true if requested method is PATCH */ protected boolean isPatchMethod(ODataRequest.Method method) { return ODataRequest.Method.PATCH.equals(method); }
private int getNumberOfChangeSetsInResult(List<ProcessorResult> result) { int changeSets = 0; for (ProcessorResult processorResult : result) { if (!processorResult.getRequestContext().getRequest().getMethod().equals(ODataRequest.Method.GET)) { changeSets++; } } return changeSets; }
/** * This method specifies requested method is PUT or not. * * @param method is ODataRequest.Method * @return true if requested method is PUT */ protected boolean isPutMethod(ODataRequest.Method method) { return ODataRequest.Method.PUT.equals(method); }
/** * This method specifies requested method is PUT or not. * * @param method is ODataRequest.Method * @return true if requested method is PUT */ protected boolean isPutMethod(ODataRequest.Method method) { return ODataRequest.Method.PUT.equals(method); }
/** * This method specifies requested method is POST or not. * * @param method is ODataRequest.Method * @return true if requested method is POST */ protected boolean isPostMethod(ODataRequest.Method method) { return ODataRequest.Method.POST.equals(method); }
/** * This method specifies requested method is PATCH or not. * * @param method is ODataRequest.Method * @return true if requested method is PATCH */ protected boolean isPatchMethod(ODataRequest.Method method) { return ODataRequest.Method.PATCH.equals(method); }
/** * This method specifies requested method is POST or not. * * @param method is ODataRequest.Method * @return true if requested method is POST */ protected boolean isPostMethod(ODataRequest.Method method) { return ODataRequest.Method.POST.equals(method); }
/** * Check if the parser is being used in the context of a 'write operation'. * * @return {@code true} if it is used in the context of a 'write operation', {@code false} otherwise. */ protected boolean isWriteOperation() { return !GET.equals(request.getMethod()); }
private int getNumberOfChangeSetsInResult(List<ProcessorResult> result) { int changeSets = 0; for (ProcessorResult processorResult : result) { if (!processorResult.getRequestContext().getRequest().getMethod().equals(ODataRequest.Method.GET)) { changeSets++; } } return changeSets; }
/** * Check if the parser is being used in the context of a 'write operation'. * * @return {@code true} if it is used in the context of a 'write operation', {@code false} otherwise. */ protected boolean isWriteOperation() { return !GET.equals(request.getMethod()); }