public final class Protocol
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Protocol |
AJP
AJP 1.3 protocol to communicate with Apache HTTP server or Microsoft IIS.
|
static Protocol |
ALL
All protocols wildcard.
|
static Protocol |
CLAP
CLAP (ClassLoader Access Protocol) is a custom scheme to access to
representations via classloaders.
|
static Protocol |
FILE
FILE is a standard scheme to access to representations stored in the file
system (locally most of the time).
|
static Protocol |
FTP
FTP protocol.
|
static Protocol |
HTTP
HTTP protocol.
|
static Protocol |
HTTPS
HTTPS protocol (via SSL socket).
|
static Protocol |
JAR
JAR (Java ARchive) is a common scheme to access to representations inside
archive files.
|
static Protocol |
JDBC
JDBC protocol.
|
static Protocol |
POP
POP protocol.
|
static Protocol |
POPS
POPS protocol (via SSL/TLS socket)..
|
static Protocol |
RIAP
RIAP (Restlet Internal Access Protocol) is a custom scheme to access
representations via internal calls to virtual hosts/components.
|
static Protocol |
SDC
SDC (Secure Data Connector) protocol.
|
static Protocol |
SIP
SIP protocol.
|
static Protocol |
SIPS
SIPS protocol (via SSL socket).
|
static Protocol |
SMTP
SMTP protocol.
|
static Protocol |
SMTPS
SMTPS protocol (via SSL/TLS socket).
|
static int |
UNKNOWN_PORT
Indicates that the port number is undefined.
|
static Protocol |
WAR
Local Web Archive access protocol.
|
static Protocol |
ZIP
ZIP is a special scheme to access to representations inside Zip archive
files.
|
Constructor and Description |
---|
Protocol(java.lang.String schemeName)
Constructor.
|
Protocol(java.lang.String schemeName,
java.lang.String name,
java.lang.String description,
int defaultPort)
Constructor.
|
Protocol(java.lang.String schemeName,
java.lang.String name,
java.lang.String description,
int defaultPort,
boolean confidential)
Constructor.
|
Protocol(java.lang.String schemeName,
java.lang.String name,
java.lang.String description,
int defaultPort,
boolean confidential,
java.lang.String version)
Constructor.
|
Protocol(java.lang.String schemeName,
java.lang.String name,
java.lang.String description,
int defaultPort,
java.lang.String version)
Constructor.
|
Protocol(java.lang.String schemeName,
java.lang.String name,
java.lang.String technicalName,
java.lang.String description,
int defaultPort,
boolean confidential,
java.lang.String version)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
int |
getDefaultPort()
Returns the default port number.
|
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getSchemeName()
Returns the URI scheme name.
|
java.lang.String |
getTechnicalName()
Returns the technical name that appears on the wire.
|
java.lang.String |
getVersion()
Returns the version.
|
int |
hashCode() |
boolean |
isConfidential()
Indicates if the protocol guarantees the confidentially of the messages
exchanged, for example via a SSL-secured connection.
|
java.lang.String |
toString()
Returns the name.
|
static Protocol |
valueOf(java.lang.String name)
Creates the protocol associated to a URI scheme name.
|
static Protocol |
valueOf(java.lang.String name,
java.lang.String version)
Creates the protocol associated to a URI scheme name.
|
public static final int UNKNOWN_PORT
public static final Protocol AJP
public static final Protocol ALL
public static final Protocol CLAP
org.restlet.client.data.LocalReference
public static final Protocol FILE
org.restlet.client.data.LocalReference
public static final Protocol FTP
public static final Protocol HTTP
public static final Protocol HTTPS
public static final Protocol JAR
org.restlet.client.data.LocalReference#createJarReference(Reference,
String)
public static final Protocol JDBC
public static final Protocol POP
public static final Protocol POPS
public static final Protocol RIAP
org.restlet.client.data.LocalReference
public static final Protocol SDC
public static final Protocol SIP
public static final Protocol SIPS
public static final Protocol SMTP
public static final Protocol SMTPS
public static final Protocol WAR
public static final Protocol ZIP
org.restlet.client.data.LocalReference#createZipReference(Reference,
String)
public Protocol(java.lang.String schemeName)
schemeName
- The scheme name.public Protocol(java.lang.String schemeName, java.lang.String name, java.lang.String description, int defaultPort)
schemeName
- The scheme name.name
- The unique name.description
- The description.defaultPort
- The default port.public Protocol(java.lang.String schemeName, java.lang.String name, java.lang.String description, int defaultPort, boolean confidential)
schemeName
- The scheme name.name
- The unique name.description
- The description.defaultPort
- The default port.confidential
- The confidentiality.public Protocol(java.lang.String schemeName, java.lang.String name, java.lang.String description, int defaultPort, boolean confidential, java.lang.String version)
schemeName
- The scheme name.name
- The unique name.description
- The description.defaultPort
- The default port.confidential
- The confidentiality.version
- The version.public Protocol(java.lang.String schemeName, java.lang.String name, java.lang.String description, int defaultPort, java.lang.String version)
schemeName
- The scheme name.name
- The unique name.description
- The description.defaultPort
- The default port.version
- The version.public Protocol(java.lang.String schemeName, java.lang.String name, java.lang.String technicalName, java.lang.String description, int defaultPort, boolean confidential, java.lang.String version)
schemeName
- The scheme name.name
- The unique name.technicalName
- The technical name that appears on the wire.description
- The description.defaultPort
- The default port.confidential
- The confidentiality.version
- The version.public static Protocol valueOf(java.lang.String name)
name
- The scheme name.public static Protocol valueOf(java.lang.String name, java.lang.String version)
name
- The scheme name.version
- The version number.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int getDefaultPort()
public java.lang.String getDescription()
public java.lang.String getName()
public java.lang.String getSchemeName()
public java.lang.String getTechnicalName()
public java.lang.String getVersion()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isConfidential()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2024 Restlet.