Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 package org.apache.xmlrpc.server;
00020
00021 import java.io.IOException;
00022 import java.io.OutputStream;
00023
00024 import org.apache.xmlrpc.common.ServerStreamConnection;
00025 import org.apache.xmlrpc.common.XmlRpcStreamRequestConfig;
00026
00027
00028
00032 public abstract class XmlRpcHttpServer extends XmlRpcStreamServer {
00033 protected abstract void setResponseHeader(ServerStreamConnection pConnection, String pHeader, String pValue);
00034
00035 protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
00036 if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
00037 setResponseHeader(pConnection, "Content-Encoding", "gzip");
00038 }
00039 return super.getOutputStream(pConnection, pConfig, pStream);
00040 }
00041 }