Add session to cache with both hostname and address.
[cyberduck.git] / source / ch / cyberduck / core / Scheme.java
blob0fab3d96c46675aa73d569130f37ffffda69404e
1 package ch.cyberduck.core;
3 /*
4 * Copyright (c) 2002-2011 David Kocher. All rights reserved.
6 * http://cyberduck.ch/
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * Bug fixes, suggestions and comments should be sent to:
19 * dkocher@cyberduck.ch
22 /**
23 * @version $Id$
25 public enum Scheme {
26 ftp {
27 @Override
28 public boolean isSecure() {
29 return false;
32 @Override
33 public int getPort() {
34 return 21;
37 ftps {
38 @Override
39 public boolean isSecure() {
40 return true;
43 @Override
44 public int getPort() {
45 return 21;
48 sftp {
49 @Override
50 public boolean isSecure() {
51 return true;
54 @Override
55 public int getPort() {
56 return 22;
59 scp {
60 @Override
61 public boolean isSecure() {
62 return true;
65 @Override
66 public int getPort() {
67 return 22;
70 http {
71 @Override
72 public boolean isSecure() {
73 return false;
76 @Override
77 public int getPort() {
78 return 80;
81 https {
82 @Override
83 public boolean isSecure() {
84 return true;
87 @Override
88 public int getPort() {
89 return 443;
92 rtmp {
93 @Override
94 public boolean isSecure() {
95 return false;
98 @Override
99 public int getPort() {
100 return 1935;
103 udt {
104 @Override
105 public boolean isSecure() {
106 return false;
109 @Override
110 public int getPort() {
111 return 4280;
114 udts {
115 @Override
116 public boolean isSecure() {
117 return true;
120 @Override
121 public int getPort() {
122 return 42443;
125 irods {
126 @Override
127 public boolean isSecure() {
128 return false;
131 @Override
132 public int getPort() {
133 return 1247;
137 public abstract boolean isSecure();
139 public abstract int getPort();