Changeset 483
- Timestamp:
- 05/16/06 09:07:36
- Files:
-
- trunk/calendar3/access/src/edu/rpi/cct/uwcal/access/PrivilegeDefs.java (modified) (1 diff)
- trunk/calendar3/caldavClientApi/src/org/bedework/caldav/client/api/CaldavClientIo.java (modified) (4 diffs)
- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/access/src/edu/rpi/cct/uwcal/access/PrivilegeDefs.java
r448 r483 181 181 182 182 'U', // privUnlock 183 184 'N', // privNone 183 185 }; 184 186 trunk/calendar3/caldavClientApi/src/org/bedework/caldav/client/api/CaldavClientIo.java
r464 r483 64 64 import org.apache.commons.httpclient.HostConfiguration; 65 65 import org.apache.commons.httpclient.HttpMethod; 66 import org.apache.commons.httpclient.URI; 67 import org.apache.commons.httpclient.protocol.Protocol; 68 import org.apache.commons.httpclient.protocol.ProtocolSocketFactory; 69 import org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory; 66 70 67 71 import sun.misc.BASE64Encoder; … … 87 91 */ 88 92 public CaldavClientIo(String host, int port, boolean debug) throws Throwable { 93 this(host, port, false, debug); 94 } 95 96 /** 97 * @param host 98 * @param port 99 * @param secure 100 * @param debug 101 * @throws Throwable 102 */ 103 public CaldavClientIo(String host, int port, boolean secure, 104 boolean debug) throws Throwable { 89 105 if (httpManager == null) { 90 106 httpManager = new HttpManager("org.bedework.http.client.caldav.CaldavClient"); … … 93 109 HostConfiguration config = new HostConfiguration(); 94 110 95 config.setHost(host, port); 111 if (secure) { 112 ProtocolSocketFactory pfact = new SSLProtocolSocketFactory(); 113 Protocol pr = new Protocol("https", pfact, port); 114 Protocol.registerProtocol( "https", pr); 115 116 config.setHost(host, port, pr); 117 } else { 118 config.setHost(host, port); 119 } 120 /* 121 if (secure) { 122 config.setHost(new URI("https://" + host + ":" + port, false)); 123 } else { 124 config.setHost(new URI("http://" + host + ":" + port, false)); 125 } 126 */ 127 96 128 client = (CaldavClient)httpManager.getClient(config); 97 129 … … 136 168 sz = content.length; 137 169 } 138 170 139 171 System.out.println("About to send request: method=" + method + 140 172 " contentLen=" + contentLen + 141 173 " content.length=" + sz); 142 174 143 175 client.setMethodName(method, url); 144 176 trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r482 r483 2245 2245 <p> 2246 2246 Access rights:<br/> 2247 <input type="radio" value=" f" name="how" checked="checked"/> view my free/busy<br/>2247 <input type="radio" value="F" name="how" checked="checked"/> view my free/busy<br/> 2248 2248 <input type="radio" value="d" name="how"/> default (reset access) 2249 2249 </p>
