本文整理了Java中org.apache.xmlrpc.common.XmlRpcStreamRequestConfig.isGzipRequesting()
方法的一些代码示例,展示了XmlRpcStreamRequestConfig.isGzipRequesting()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlRpcStreamRequestConfig.isGzipRequesting()
方法的具体详情如下:
包路径:org.apache.xmlrpc.common.XmlRpcStreamRequestConfig
类名称:XmlRpcStreamRequestConfig
方法名:isGzipRequesting
[英]Returns, whether compression is requested for the response stream. Note, that the request is stull uncompressed, unless #isGzipCompressing() is activated. Also note, that the server may still decide to send uncompressed data.
[中]返回是否为响应流请求压缩。请注意,除非激活了#isgzip compressing(),否则请求是stull uncompressed。还请注意,服务器仍可能决定发送未压缩的数据。
代码示例来源:origin: xmlrpc/xmlrpc-client
protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig) {
return pConfig.isGzipRequesting();
}
代码示例来源:origin: org.apache.xmlrpc/xmlrpc-client
protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig) {
return pConfig.isGzipRequesting();
}
代码示例来源:origin: rosjava/rosjava_core
protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig) {
return pConfig.isGzipRequesting();
}
代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server
/** Called to prepare the output stream. Typically used for enabling
* compression, or similar filters.
* @param pConnection The connection object.
*/
protected OutputStream getOutputStream(ServerStreamConnection pConnection,
XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
return new GZIPOutputStream(pStream);
} else {
return pStream;
}
}
代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server
/** Called to prepare the output stream. Typically used for enabling
* compression, or similar filters.
* @param pConnection The connection object.
*/
protected OutputStream getOutputStream(ServerStreamConnection pConnection,
XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
return new GZIPOutputStream(pStream);
} else {
return pStream;
}
}
代码示例来源:origin: rosjava/rosjava_core
/** Called to prepare the output stream. Typically used for enabling
* compression, or similar filters.
* @param pConnection The connection object.
*/
protected OutputStream getOutputStream(ServerStreamConnection pConnection,
XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
return new GZIPOutputStream(pStream);
} else {
return pStream;
}
}
代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server
protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
setResponseHeader(pConnection, "Content-Encoding", "gzip");
}
return super.getOutputStream(pConnection, pConfig, pStream);
}
}
代码示例来源:origin: xmlrpc/xmlrpc-client
protected void setCompressionHeaders(XmlRpcHttpClientConfig pConfig) {
if (pConfig.isGzipCompressing()) {
setRequestHeader("Content-Encoding", "gzip");
}
if (pConfig.isGzipRequesting()) {
setRequestHeader("Accept-Encoding", "gzip");
}
}
代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server
protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
setResponseHeader(pConnection, "Content-Encoding", "gzip");
}
return super.getOutputStream(pConnection, pConfig, pStream);
}
}
代码示例来源:origin: rosjava/rosjava_core
protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
setResponseHeader(pConnection, "Content-Encoding", "gzip");
}
return super.getOutputStream(pConnection, pConfig, pStream);
}
}
内容来源于网络,如有侵权,请联系作者删除!