@Test public void getOperationTypeDelete() { Assert.assertEquals( FhirOperationType.DELETE, bundleResourceProvider.getOperationType( "DELete" ) ); }
@Nonnull protected FhirOperationType getOperationType( @Nullable String httpVerb ) { FhirOperationType operationType = FhirOperationType.UNKNOWN; if ( httpVerb == null ) { return operationType; } switch ( httpVerb.toLowerCase() ) { case "post": operationType = FhirOperationType.POST; break; case "put": operationType = FhirOperationType.PUT; break; case "delete": operationType = FhirOperationType.DELETE; break; } return operationType; }
AbstractBundleResourceProvider extends AbstractUntypedResourceProvider { @Nonnull protected FhirOperationType getOperationType( @Nullable String httpVerb ) { FhirOperationType operationType = FhirOperationType.UNKNOWN; if ( httpVerb == null ) { return operationType; } switch ( httpVerb.toLowerCase() ) { case "post": operationType = FhirOperationType.POST; break; case "put": operationType = FhirOperationType.PUT; break; case "delete": operationType = FhirOperationType.DELETE; break; } return operationType; } }
AbstractBundleResourceProvider extends AbstractUntypedResourceProvider { @Nonnull protected FhirOperationType getOperationType( @Nullable String httpVerb ) { FhirOperationType operationType = FhirOperationType.UNKNOWN; if ( httpVerb == null ) { return operationType; } switch ( httpVerb.toLowerCase() ) { case "post": operationType = FhirOperationType.POST; break; case "put": operationType = FhirOperationType.PUT; break; case "delete": operationType = FhirOperationType.DELETE; break; } return operationType; } AbstractBundleResourceProvider(
        @Nonnull FhirClientResourceRepository fhirClientResourceRepository,
        @Nonnull FhirClientSystemRepository fhirClientSystemRepository,
        @Nonnull FhirRepository fhirRepository, @Nonnull DhisRepository dhisRepository,
        @Nonnull RequestCacheService requestCacheService ); }
AbstractBundleResourceProvider extends AbstractUntypedResourceProvider { @Nonnull protected FhirOperationType getOperationType( @Nullable String httpVerb ) { FhirOperationType operationType = FhirOperationType.UNKNOWN; if ( httpVerb == null ) { return operationType; } switch ( httpVerb.toLowerCase() ) { case "post": operationType = FhirOperationType.POST; break; case "put": operationType = FhirOperationType.PUT; break; case "delete": operationType = FhirOperationType.DELETE; break; } return operationType; } AbstractBundleResourceProvider(
        @Nonnull FhirClientResourceRepository fhirClientResourceRepository,
        @Nonnull FhirClientSystemRepository fhirClientSystemRepository,
        @Nonnull FhirRepository fhirRepository, @Nonnull DhisRepository dhisRepository,
        @Nonnull RequestCacheService requestCacheService );  }
AbstractBundleResourceProvider extends AbstractUntypedResourceProvider { @Nonnull protected FhirOperationType getOperationType( @Nullable String httpVerb ) { FhirOperationType operationType = FhirOperationType.UNKNOWN; if ( httpVerb == null ) { return operationType; } switch ( httpVerb.toLowerCase() ) { case "post": operationType = FhirOperationType.POST; break; case "put": operationType = FhirOperationType.PUT; break; case "delete": operationType = FhirOperationType.DELETE; break; } return operationType; } AbstractBundleResourceProvider(
        @Nonnull FhirClientResourceRepository fhirClientResourceRepository,
        @Nonnull FhirClientSystemRepository fhirClientSystemRepository,
        @Nonnull FhirRepository fhirRepository, @Nonnull DhisRepository dhisRepository,
        @Nonnull RequestCacheService requestCacheService );   }