|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.gwt.data.Metadata
org.restlet.gwt.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 |
ALL
All protocols wildcard. |
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 int |
UNKNOWN_PORT
Indicates that the port number is undefined. |
| 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 name)
Creates the protocol associated to a URI scheme name. |
| Methods inherited from class org.restlet.gwt.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 FILE
public static final Protocol FTP
public static final Protocol HTTP
public static final Protocol HTTPS
| 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 name)
name - The scheme name.
public boolean equals(Object object)
equals in class Metadatapublic 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 | |||||||||