|
||||||||||
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
Class loader access protocol. |
static Protocol |
FILE
Local file system access protocol. |
static Protocol |
FTP
FTP protocol. |
static Protocol |
HTTP
HTTP protocol. |
static Protocol |
HTTPS
HTTPS protocol (via SSL socket). |
static Protocol |
JAR
JAR protocol. |
static Protocol |
JDBC
JDBC protocol. |
static Protocol |
SMTP
SMTP protocol. |
static Protocol |
SMTP_STARTTLS
SMTP with STARTTLS protocol (started with a plain socket). |
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(String schemeName)
Constructor. |
|
Protocol(String schemeName,
String name,
String description,
int defaultPort)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
int |
getDefaultPort()
Returns the default port number. |
String |
getSchemeName()
Returns the URI scheme name. |
int |
hashCode()
|
static Protocol |
valueOf(String schemeName)
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 ALL
public static final Protocol AJP
public static final Protocol CLAP
public static final Protocol WAR
public static final Protocol FILE
public static final Protocol FTP
public static final Protocol HTTP
public static final Protocol HTTPS
public static final Protocol JAR
public static final Protocol JDBC
public static final Protocol SMTP
public static final Protocol SMTP_STARTTLS
public static final Protocol SMTPS
Constructor Detail |
---|
public Protocol(String schemeName)
schemeName
- The scheme name.public Protocol(String schemeName, String name, String description, int defaultPort)
schemeName
- The scheme name.name
- The unique name.description
- The description.defaultPort
- The default port.Method Detail |
---|
public static Protocol valueOf(String schemeName)
schemeName
- The scheme name.
public boolean equals(Object object)
equals
in class Metadata
public int getDefaultPort()
public String getSchemeName()
public int hashCode()
hashCode
in class Metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |