|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Metadata
org.restlet.data.Protocol
public final class Protocol
Protocol used by client and server connectors. Connectors enable the communication between components by implementing standard protocols.
Field Summary | |
---|---|
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 |
SMTP
SMTP protocol. |
static Protocol |
SMTP_STARTTLS
Deprecated. Use the "startTls" parameter on the JavaMail connector instead. |
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. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
int |
getDefaultPort()
Returns the default port number. |
java.lang.String |
getSchemeName()
Returns the URI scheme name. |
int |
hashCode()
|
boolean |
isConfidential()
Indicates if the protocol guarantees the confidentially of the messages exchanged, for example via a SSL-secured connection. |
static Protocol |
valueOf(java.lang.String name)
Creates the protocol associated to a URI scheme name. |
Methods inherited from class org.restlet.data.Metadata |
---|
getDescription, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN_PORT
public static final Protocol AJP
public static final Protocol ALL
public static final Protocol CLAP
LocalReference
public static final Protocol FILE
LocalReference
public static final Protocol FTP
public static final Protocol HTTP
public static final Protocol HTTPS
public static final Protocol JAR
LocalReference
public static final Protocol JDBC
public static final Protocol POP
public static final Protocol POPS
public static final Protocol RIAP
LocalReference
public static final Protocol SMTP
@Deprecated public static final Protocol SMTP_STARTTLS
public static final Protocol SMTPS
public static final Protocol WAR
Constructor Detail |
---|
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.Method Detail |
---|
public static Protocol valueOf(java.lang.String name)
name
- The scheme name.
public boolean equals(java.lang.Object object)
equals
in class Metadata
public int getDefaultPort()
public java.lang.String getSchemeName()
public int hashCode()
hashCode
in class Metadata
public boolean isConfidential()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |