private static void checkFunctionImport(final ODataHttpMethod method, final UriInfoImpl uriInfo) throws ODataException { if (uriInfo.getFunctionImport() != null && uriInfo.getFunctionImport().getHttpMethod() != null && !uriInfo.getFunctionImport().getHttpMethod().equals(method.toString())) { throw new ODataMethodNotAllowedException(ODataMethodNotAllowedException.DISPATCH); } }
private static void checkFunctionImport(final ODataHttpMethod method, final UriInfoImpl uriInfo) throws ODataException { if (uriInfo.getFunctionImport() != null && uriInfo.getFunctionImport().getHttpMethod() != null && !uriInfo.getFunctionImport().getHttpMethod().equals(method.toString())) { throw new ODataMethodNotAllowedException(ODataMethodNotAllowedException.DISPATCH); } }
private static void checkFunctionImport(final ODataHttpMethod method, final UriInfoImpl uriInfo) throws ODataException { if (uriInfo.getFunctionImport() != null && uriInfo.getFunctionImport().getHttpMethod() != null && !uriInfo.getFunctionImport().getHttpMethod().equals(method.toString())) { throw new ODataMethodNotAllowedException(ODataMethodNotAllowedException.DISPATCH); } }
ExtensionHolder holder = null; boolean withinChangeSet = extensionMethodForTransaction != null; if (uriInfo.getFunctionImport().getHttpMethod().compareTo("GET") == 0) { } else if (uriInfo.getFunctionImport().getHttpMethod().compareTo("POST") == 0) {
: new EntityMetadataV2(function.getEntitySet()); OperationRequest operationRequest = new OperationRequestImpl(null, function.getName(), entityMetadata, context.getRequestHeaders(), funcParams, function.getHttpMethod()); String operation = operationRequest.getHttpMethod().equals("POST") ? Action : Function; operationResponse = (OperationResponseImpl) ProcessorHelper.invokeOperation(operationRequest, serviceName,
performRollbackAndCleanupActivities(extensionMethod); } else { if (uriInfo.getFunctionImport().getHttpMethod().compareTo("GET") == 0) { performRollbackAndCleanupActivities(extensionMethod);