DumpMessage.java
- /*
- * GovWay - A customizable API Gateway
- * https://govway.org
- *
- * Copyright (c) 2005-2025 Link.it srl (https://link.it).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3, as published by
- * the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- package org.openspcoop2.utils.service.context.dump;
- import java.util.HashMap;
- import java.util.Map;
- /**
- * DumpMessage
- *
- * @author Lorenzo Nardi (nardi@link.it)
- * @author $Author$
- * @version $Rev$, $Date$
- */
- public abstract class DumpMessage {
-
- private byte[] payload;
- private String contentType;
- private Map<String, String> headers = new HashMap<>();
- public Map<String, String> getHeaders() {
- return this.headers;
- }
- public void setHeaders(Map<String, String> headers) {
- this.headers = headers;
- }
- public String getContentType() {
- return this.contentType;
- }
- public void setContentType(String contentType) {
- this.contentType = contentType;
- }
- public byte[] getPayload() {
- return this.payload;
- }
- public void setPayload(byte[] payload) {
- this.payload = payload;
- }
- }