X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fpolicyagent%2Fdmaap%2FDmaapRequestMessage.java;h=7e61b39865068ed801feea58014a78ac059ac61e;hb=6d5eb23d4d007cccce8bb758fd68fd94045bdf7d;hp=fe48aec2fc26e81f462cb2d32fedecf4260c0418;hpb=0da7354bf7548829a7152dfa0276710dbbe00b7b;p=nonrtric.git diff --git a/policy-agent/src/main/java/org/oransc/policyagent/dmaap/DmaapRequestMessage.java b/policy-agent/src/main/java/org/oransc/policyagent/dmaap/DmaapRequestMessage.java index fe48aec2..7e61b398 100644 --- a/policy-agent/src/main/java/org/oransc/policyagent/dmaap/DmaapRequestMessage.java +++ b/policy-agent/src/main/java/org/oransc/policyagent/dmaap/DmaapRequestMessage.java @@ -2,7 +2,7 @@ * ========================LICENSE_START================================= * O-RAN-SC * %% - * Copyright (C) 2019 Nordix Foundation + * Copyright (C) 2020 Nordix Foundation * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,10 @@ package org.oransc.policyagent.dmaap; +import java.util.Optional; + +import com.google.gson.JsonObject; + import org.immutables.gson.Gson; import org.immutables.value.Value; @@ -27,7 +31,7 @@ import org.immutables.value.Value; @Gson.TypeAdapters public interface DmaapRequestMessage { - public static enum Operation { + public enum Operation { PUT, GET, DELETE, POST } @@ -49,5 +53,5 @@ public interface DmaapRequestMessage { String url(); - String payload(); + Optional payload(); }