本文整理了Java中org.apache.xmlrpc.common.XmlRpcStreamRequestConfig.isEnabledForExtensions()
方法的一些代码示例,展示了XmlRpcStreamRequestConfig.isEnabledForExtensions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlRpcStreamRequestConfig.isEnabledForExtensions()
方法的具体详情如下:
包路径:org.apache.xmlrpc.common.XmlRpcStreamRequestConfig
类名称:XmlRpcStreamRequestConfig
方法名:isEnabledForExtensions
暂无
代码示例来源: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: 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.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: org.apache.xmlrpc/xmlrpc-client
protected boolean isCompressingRequest(XmlRpcStreamRequestConfig pConfig) {
return pConfig.isEnabledForExtensions()
&& pConfig.isGzipCompressing();
}
代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-client
protected boolean isCompressingRequest(XmlRpcStreamRequestConfig pConfig) {
return pConfig.isEnabledForExtensions()
&& pConfig.isGzipCompressing();
}
代码示例来源:origin: org.ogema.drivers/homematic-xmlrpc-ll
protected boolean isCompressingRequest(XmlRpcStreamRequestConfig pConfig) {
return pConfig.isEnabledForExtensions()
&& pConfig.isGzipCompressing();
}
代码示例来源:origin: rosjava/rosjava_core
protected boolean isCompressingRequest(XmlRpcStreamRequestConfig pConfig) {
return pConfig.isEnabledForExtensions()
&& pConfig.isGzipCompressing();
}
代码示例来源:origin: rosjava/rosjava_core
protected InputStream getInputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection) throws IOException {
InputStream istream = pConnection.newInputStream();
if (pConfig.isEnabledForExtensions() && pConfig.isGzipCompressing()) {
istream = new GZIPInputStream(istream);
}
return istream;
}
代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server
protected InputStream getInputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection) throws IOException {
InputStream istream = pConnection.newInputStream();
if (pConfig.isEnabledForExtensions() && pConfig.isGzipCompressing()) {
istream = new GZIPInputStream(istream);
}
return istream;
}
代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server
protected InputStream getInputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection) throws IOException {
InputStream istream = pConnection.newInputStream();
if (pConfig.isEnabledForExtensions() && pConfig.isGzipCompressing()) {
istream = new GZIPInputStream(istream);
}
return istream;
}
代码示例来源: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: 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);
}
}
代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server
/** Returns, whether the requests content length is required.
*/
protected boolean isContentLengthRequired(XmlRpcStreamRequestConfig pConfig) {
if (!pConfig.isEnabledForExtensions()) {
// The spec requires a content-length.
return true;
}
boolean isRequired = !((XmlRpcHttpServerConfig) getConfig()).isContentLengthOptional();
if(pConfig instanceof XmlRpcHttpRequestConfig) {
isRequired |= !((XmlRpcHttpRequestConfig)pConfig).isContentLengthOptional();
}
return isRequired;
}
代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server
/** Returns, whether the requests content length is required.
*/
protected boolean isContentLengthRequired(XmlRpcStreamRequestConfig pConfig) {
if (!pConfig.isEnabledForExtensions()) {
// The spec requires a content-length.
return true;
}
boolean isRequired = !((XmlRpcHttpServerConfig) getConfig()).isContentLengthOptional();
if(pConfig instanceof XmlRpcHttpRequestConfig) {
isRequired |= !((XmlRpcHttpRequestConfig)pConfig).isContentLengthOptional();
}
return isRequired;
}
内容来源于网络,如有侵权,请联系作者删除!