📄 httpspollingconnector.java
字号:
/* * $Id: HttpsPollingConnector.java 12539 2008-08-20 19:40:19Z tcarlson $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.transport.http;import org.mule.api.config.MuleProperties;import java.util.Properties;/** * <code>HttpsPollingConnector</code> provides Secure http connectivity on top of what is already provided with the * Mule {@link org.mule.transport.http.HttpPollingConnector}. */public class HttpsPollingConnector extends HttpsConnector{ /** * How long to wait in milliseconds between make a new request */ private long pollingFrequency = 1000L; /** * If a zero-length content is returned should the message be discarded */ private boolean discardEmptyContent = true; /** * Should the ETag header get honoured if it is present. */ private boolean checkEtag = true; public HttpsPollingConnector() { serviceOverrides = new Properties(); serviceOverrides.setProperty(MuleProperties.CONNECTOR_MESSAGE_RECEIVER_CLASS, PollingHttpMessageReceiver.class.getName()); } public boolean isDiscardEmptyContent() { return discardEmptyContent; } public void setDiscardEmptyContent(boolean discardEmptyContent) { this.discardEmptyContent = discardEmptyContent; } public long getPollingFrequency() { return pollingFrequency; } public void setPollingFrequency(long pollingFrequency) { this.pollingFrequency = pollingFrequency; } public boolean isCheckEtag() { return checkEtag; } public void setCheckEtag(boolean checkEtag) { this.checkEtag = checkEtag; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -