Examples of CBuffer


Examples of org.apache.tomcat.lite.io.CBuffer

    public void setMimeHeaders(MultiMap resHeaders) {
        this.headers = resHeaders;
    }

    public String getHeader(String name) {
        CBuffer cb = headers.getHeader(name);
        return (cb == null) ? null : cb.toString();
    }
View Full Code Here

Examples of org.apache.tomcat.lite.io.CBuffer

        clB.valueB = clBuffer;
    }

    public long getContentLengthLong() {
        if (contentLength == -2) {
            CBuffer clB = headers.getHeader("content-length");
            contentLength = (clB == null) ?
                    -1 : clB.getLong();
        }
        return contentLength;
    }
View Full Code Here

Examples of org.apache.tomcat.lite.io.CBuffer

        }
        return -1;
    }

    public String getContentType() {
        CBuffer contentTypeMB = headers.getHeader("content-type");
        if (contentTypeMB == null) {
            return null;
        }
        return contentTypeMB.toString();
    }
View Full Code Here

Examples of org.apache.tomcat.lite.io.CBuffer

        }
        return contentTypeMB.toString();
    }

    public void setContentType(String contentType) {
        CBuffer clB = getMimeHeaders().getHeader("content-type");
        if (clB == null) {
            setHeader("Content-Type", contentType);
        } else {
            clB.set(contentType);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.