All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.analogweb.netty.FullHttpHeaders Maven / Gradle / Ivy

There is a newer version: 0.12.0
Show newest version
package org.analogweb.netty;

import io.netty.handler.codec.http.HttpHeaders;

import java.util.ArrayList;
import java.util.List;

import org.analogweb.Headers;

/**
 * @author snowgooseyk
 */
public class FullHttpHeaders implements Headers {

    private final HttpHeaders source;

    public FullHttpHeaders(HttpHeaders headers) {
        this.source = headers;
    }

    @Override
    public boolean contains(String name) {
        return this.source.contains(name);
    }

    @Override
    public List getNames() {
        return new ArrayList(this.source.names());
    }

    @Override
    public List getValues(String name) {
        return this.source.getAll(name);
    }

    @Override
    public void putValue(String name, String value) {
        this.source.add(name, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy