io.github.jzdayz.protocol.Header Maven / Gradle / Ivy
package io.github.jzdayz.protocol;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Header {
private Map map = new HashMap<>();
public String get(String key){
return map.get(key);
}
public String set(String key,String val){
return map.put(key,val);
}
}