
org.testifyproject.netty.handler.codec.http.HttpObjectEncoder Maven / Gradle / Ivy
/*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in org.testifyproject.testifyprojectpliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org.testifyproject/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package org.testifyproject.testifyproject.netty.handler.codec.http;
import org.testifyproject.testifyproject.netty.buffer.ByteBuf;
import org.testifyproject.testifyproject.netty.channel.ChannelHandlerContext;
import org.testifyproject.testifyproject.netty.channel.FileRegion;
import org.testifyproject.testifyproject.netty.handler.codec.MessageToMessageEncoder;
import org.testifyproject.testifyproject.netty.util.CharsetUtil;
import org.testifyproject.testifyproject.netty.util.internal.PlatformDependent;
import org.testifyproject.testifyproject.netty.util.internal.StringUtil;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import static org.testifyproject.testifyproject.netty.buffer.Unpooled.EMPTY_BUFFER;
import static org.testifyproject.testifyproject.netty.buffer.Unpooled.directBuffer;
import static org.testifyproject.testifyproject.netty.buffer.Unpooled.unreleasableBuffer;
import static org.testifyproject.testifyproject.netty.handler.codec.http.HttpConstants.CR;
import static org.testifyproject.testifyproject.netty.handler.codec.http.HttpConstants.LF;
/**
* Encodes an {@link HttpMessage} or an {@link HttpContent} into
* a {@link ByteBuf}.
*
* Extensibility
*
* Please note that this encoder is org.testifyproject.testifyprojectsigned to be extended to implement
* a protocol org.testifyproject.testifyprojectrived from HTTP, such as
* RTSP and
* ICAP.
* To implement the encoder of such a org.testifyproject.testifyprojectrived protocol, extend this class and
* implement all abstract methods properly.
*/
public abstract class HttpObjectEncoder extends MessageToMessageEncoder
© 2015 - 2025 Weber Informatics LLC | Privacy Policy