|
||||||||||
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(java.lang.String schemeName)
Constructor. |
|
Protocol(java.lang.String schemeName,
java.lang.String name,
java.lang.String description,
int defaultPort)
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()
|
static Protocol |
valueOf(java.lang.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(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.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |