X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=policy-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fpolicyagent%2Fdmaap%2FDmaapRequestMessage.java;h=c2d0d4c094285e8e272abec44319b83a18b42fd6;hb=6a39814272307d0207222c9229b0d765ac062bf0;hp=fe48aec2fc26e81f462cb2d32fedecf4260c0418;hpb=0b2f51f6215dad3fc93d74572ad23f950ad8ae98;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..c2d0d4c0 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 com.google.gson.JsonObject; + +import java.util.Optional; + import org.immutables.gson.Gson; import org.immutables.value.Value; @@ -27,12 +31,10 @@ import org.immutables.value.Value; @Gson.TypeAdapters public interface DmaapRequestMessage { - public static enum Operation { + public enum Operation { PUT, GET, DELETE, POST } - String type(); - String correlationId(); String target(); @@ -49,5 +51,5 @@ public interface DmaapRequestMessage { String url(); - String payload(); + Optional payload(); }