org.apache.xmlrpc.common.XmlRpcStreamRequestConfig.isGzipRequesting()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(197)

本文整理了Java中org.apache.xmlrpc.common.XmlRpcStreamRequestConfig.isGzipRequesting()方法的一些代码示例,展示了XmlRpcStreamRequestConfig.isGzipRequesting()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlRpcStreamRequestConfig.isGzipRequesting()方法的具体详情如下:
包路径:org.apache.xmlrpc.common.XmlRpcStreamRequestConfig
类名称:XmlRpcStreamRequestConfig
方法名:isGzipRequesting

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

  1. protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig) {
  2. return pConfig.isGzipRequesting();
  3. }

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-client

  1. protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig) {
  2. return pConfig.isGzipRequesting();
  3. }

代码示例来源:origin: rosjava/rosjava_core

  1. protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig) {
  2. return pConfig.isGzipRequesting();
  3. }

代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server

  1. /** Called to prepare the output stream. Typically used for enabling
  2. * compression, or similar filters.
  3. * @param pConnection The connection object.
  4. */
  5. protected OutputStream getOutputStream(ServerStreamConnection pConnection,
  6. XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
  7. if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
  8. return new GZIPOutputStream(pStream);
  9. } else {
  10. return pStream;
  11. }
  12. }

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server

  1. /** Called to prepare the output stream. Typically used for enabling
  2. * compression, or similar filters.
  3. * @param pConnection The connection object.
  4. */
  5. protected OutputStream getOutputStream(ServerStreamConnection pConnection,
  6. XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
  7. if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
  8. return new GZIPOutputStream(pStream);
  9. } else {
  10. return pStream;
  11. }
  12. }

代码示例来源:origin: rosjava/rosjava_core

  1. /** Called to prepare the output stream. Typically used for enabling
  2. * compression, or similar filters.
  3. * @param pConnection The connection object.
  4. */
  5. protected OutputStream getOutputStream(ServerStreamConnection pConnection,
  6. XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
  7. if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
  8. return new GZIPOutputStream(pStream);
  9. } else {
  10. return pStream;
  11. }
  12. }

代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server

  1. protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
  2. if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
  3. setResponseHeader(pConnection, "Content-Encoding", "gzip");
  4. }
  5. return super.getOutputStream(pConnection, pConfig, pStream);
  6. }
  7. }

代码示例来源:origin: xmlrpc/xmlrpc-client

  1. protected void setCompressionHeaders(XmlRpcHttpClientConfig pConfig) {
  2. if (pConfig.isGzipCompressing()) {
  3. setRequestHeader("Content-Encoding", "gzip");
  4. }
  5. if (pConfig.isGzipRequesting()) {
  6. setRequestHeader("Accept-Encoding", "gzip");
  7. }
  8. }

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server

  1. protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
  2. if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
  3. setResponseHeader(pConnection, "Content-Encoding", "gzip");
  4. }
  5. return super.getOutputStream(pConnection, pConfig, pStream);
  6. }
  7. }

代码示例来源:origin: rosjava/rosjava_core

  1. protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException {
  2. if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
  3. setResponseHeader(pConnection, "Content-Encoding", "gzip");
  4. }
  5. return super.getOutputStream(pConnection, pConfig, pStream);
  6. }
  7. }

相关文章