Coverage Report - org.mule.transport.http.HttpsPollingConnector
 
Classes in this File Line Coverage Branch Coverage Complexity
HttpsPollingConnector
100%
16/16
N/A
1
 
 1  
 /*
 2  
  * $Id: HttpsPollingConnector.java 11983 2008-06-10 15:16:36Z rossmason $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 package org.mule.transport.http;
 11  
 
 12  
 import org.mule.api.lifecycle.InitialisationException;
 13  
 import org.mule.api.config.MuleProperties;
 14  
 
 15  
 import java.util.Properties;
 16  
 
 17  
 /**
 18  
  * <code>HttpsPollingConnector</code> provides Secure http connectivity on top of what is already provided with the
 19  
  * Mule {@link org.mule.transport.http.HttpPollingConnector}.
 20  
  */
 21  
 public class HttpsPollingConnector extends HttpsConnector
 22  
 {
 23  
     /**
 24  
      * How long to wait in milliseconds between make a new request
 25  
      */
 26  4
     private long pollingFrequency = 1000L;
 27  
 
 28  
     /**
 29  
      * If a zero-length content is returned should the message be discarded
 30  
      */
 31  4
     private boolean discardEmptyContent = true;
 32  
 
 33  
     /**
 34  
      * Should the ETag header get honoured if it is present.
 35  
      */
 36  4
     private boolean checkEtag = true;
 37  
 
 38  
     public HttpsPollingConnector()
 39  4
     {
 40  4
         serviceOverrides = new Properties();
 41  4
         serviceOverrides.setProperty(MuleProperties.CONNECTOR_MESSAGE_RECEIVER_CLASS, PollingHttpMessageReceiver.class.getName());
 42  4
     }
 43  
 
 44  
     public boolean isDiscardEmptyContent()
 45  
     {
 46  2
         return discardEmptyContent;
 47  
     }
 48  
 
 49  
     public void setDiscardEmptyContent(boolean discardEmptyContent)
 50  
     {
 51  4
         this.discardEmptyContent = discardEmptyContent;
 52  4
     }
 53  
 
 54  
     public long getPollingFrequency()
 55  
     {
 56  2
         return pollingFrequency;
 57  
     }
 58  
 
 59  
     public void setPollingFrequency(long pollingFrequency)
 60  
     {
 61  4
         this.pollingFrequency = pollingFrequency;
 62  4
     }
 63  
 
 64  
     public boolean isCheckEtag()
 65  
     {
 66  2
         return checkEtag;
 67  
     }
 68  
 
 69  
     public void setCheckEtag(boolean checkEtag)
 70  
     {
 71  4
         this.checkEtag = checkEtag;
 72  4
     }
 73  
 }