static String getHttpVerbForOperation ( final TableOperationType operationType ) { if ( operationType == TableOperationType . INSERT ) { return "POST" ; } else if ( operationType == TableOperationType . DELETE ) { return "DELETE" ; } else if ( operationType == TableOperationType . MERGE || operationType == TableOperationType . INSERT_OR_MERGE ) { return "MERGE" ; } else if ( operationType == TableOperationType . REPLACE || operationType == TableOperationType . INSERT_OR_REPLACE ) { return "PUT" ; } else if ( operationType == TableOperationType . RETRIEVE ) { return "GET" ; } else { throw new IllegalArgumentException ( SR . UNKNOWN_TABLE_OPERATION ) ; } }
Reserved for internal use . Returns the HTTP verb for a table operation .