## Uses of Class
org.restlet.data.Protocol

Packages that use Protocol
Package | Description
--- | ---
org.restlet | Core classes of the API.
org.restlet.data | Information exchanged by components.
org.restlet.engine | Implementation of Restlet API.
org.restlet.engine.http | Supports HTTP connectors.
org.restlet.resource | Client and server resource classes.
org.restlet.service | Services used by applications and components.
org.restlet.util | Various utility classes.

### Uses of Protocol in org.restlet

Methods in org.restlet that return Protocol
Modifier and Type | Method and Description
--- | ---
`Protocol` | Request.`getProtocol()` Returns the protocol used or to be used, if known.

Methods in org.restlet that return types with arguments of type Protocol
Modifier and Type | Method and Description
--- | ---
`java.util.List<Protocol>` | Connector.`getProtocols()` Returns the modifiable list of protocols simultaneously supported.

Methods in org.restlet with parameters of type Protocol
Modifier and Type | Method and Description
--- | ---
`void` | Request.`setProtocol(Protocol protocol)` Sets the protocol used or to be used.

Method parameters in org.restlet with type arguments of type Protocol
Modifier and Type | Method and Description
--- | ---
`void` | Connector.`setProtocols(java.util.List<Protocol> protocols)` Sets the list of protocols simultaneously supported.

Constructors in org.restlet with parameters of type Protocol
Constructor and Description
`Client(Context context, Protocol protocol)` Constructor.
`Client(Protocol protocol)` Constructor.
`Server(Context context, Protocol protocol, java.lang.Class<?> nextClass)` Constructor.
`Server(Context context, Protocol protocol, int port)` Constructor.
`Server(Context context, Protocol protocol, int port, java.lang.Class<?> nextClass)` Constructor.
`Server(Context context, Protocol protocol, int port, Restlet next)` Constructor.
`Server(Context context, Protocol protocol, Restlet next)` Constructor using the protocol's default port.
`Server(Context context, Protocol protocol, java.lang.String address, int port, Restlet next)` Constructor.
`Server(Protocol protocol)` Constructor.
`Server(Protocol protocol, java.lang.Class<?> nextClass)` Constructor using the protocol's default port.
`Server(Protocol protocol, int port)` Constructor.
`Server(Protocol protocol, int port, java.lang.Class<?> nextClass)` Constructor.
`Server(Protocol protocol, int port, Restlet next)` Constructor.
`Server(Protocol protocol, Restlet next)` Constructor using the protocol's default port.
`Server(Protocol protocol, java.lang.String address)` Constructor using the protocol's default port.
`Server(Protocol protocol, java.lang.String address, java.lang.Class<?> nextClass)` Constructor using the protocol's default port.
`Server(Protocol protocol, java.lang.String address, int port)` Constructor.
`Server(Protocol protocol, java.lang.String address, int port, Restlet next)` Constructor.
`Server(Protocol protocol, java.lang.String address, Restlet next)` Constructor using the protocol's default port.

Constructor parameters in org.restlet with type arguments of type Protocol
Constructor and Description
`Client(Context context, java.util.List<Protocol> protocols)` Constructor.
`Client(Context context, java.util.List<Protocol> protocols, java.lang.String helperClass)` Constructor.
`Client(java.util.List<Protocol> protocols)` Constructor.
`Connector(Context context, java.util.List<Protocol> protocols)` Constructor.
`Server(Context context, java.util.List<Protocol> protocols, int port, Restlet next)` Constructor.
`Server(Context context, java.util.List<Protocol> protocols, java.lang.String address, int port, Restlet next)` Constructor.
`Server(Context context, java.util.List<Protocol> protocols, java.lang.String address, int port, Restlet next, java.lang.String helperClass)` Constructor.
`Server(java.util.List<Protocol> protocols, int port, Restlet next)` Constructor.
`Server(java.util.List<Protocol> protocols, java.lang.String address, int port, Restlet next)` Constructor.

### Uses of Protocol in org.restlet.data

Fields in org.restlet.data declared as Protocol
Modifier and Type | Field and Description
--- | ---
`static Protocol` | Protocol.`AJP` AJP 1.3 protocol to communicate with Apache HTTP server or Microsoft IIS.
`static Protocol` | Protocol.`ALL` All protocols wildcard.
`static Protocol` | Protocol.`CLAP` CLAP (ClassLoader Access Protocol) is a custom scheme to access to representations via classloaders.
`static Protocol` | Protocol.`FILE` FILE is a standard scheme to access to representations stored in the file system (locally most of the time).
`static Protocol` | Protocol.`FTP` FTP protocol.
`static Protocol` | Protocol.`HTTP` HTTP protocol.
`static Protocol` | Protocol.`HTTPS` HTTPS protocol (via SSL socket).
`static Protocol` | Protocol.`JAR` JAR (Java ARchive) is a common scheme to access to representations inside archive files.
`static Protocol` | Protocol.`JDBC` JDBC protocol.
`static Protocol` | Protocol.`POP` POP protocol.
`static Protocol` | Protocol.`POPS` POPS protocol (via SSL/TLS socket)..
`static Protocol` | Protocol.`RIAP` RIAP (Restlet Internal Access Protocol) is a custom scheme to access representations via internal calls to virtual hosts/components.
`static Protocol` | Protocol.`SIP` SIP protocol.
`static Protocol` | Protocol.`SIPS` SIPS protocol (via SSL socket).
`static Protocol` | Protocol.`SMTP` SMTP protocol.
`static Protocol` | Protocol.`SMTPS` SMTPS protocol (via SSL/TLS socket).
`static Protocol` | Protocol.`WAR` Local Web Archive access protocol.
`static Protocol` | Protocol.`ZIP` ZIP is a special scheme to access to representations inside Zip archive files.

Methods in org.restlet.data that return Protocol
Modifier and Type | Method and Description
--- | ---
`Protocol` | RecipientInfo.`getProtocol()` Returns the protocol used to communicate with the recipient.
`Protocol` | Reference.`getSchemeProtocol()` Returns the protocol associated with the scheme component.
`static Protocol` | Protocol.`valueOf(java.lang.String name)` Creates the protocol associated to a URI scheme name.

Methods in org.restlet.data with parameters of type Protocol
Modifier and Type | Method and Description
--- | ---
`void` | RecipientInfo.`setProtocol(Protocol protocol)` Sets the protocol used to communicate with the recipient.
`void` | Reference.`setProtocol(Protocol protocol)` Sets the scheme component based on this protocol.

Constructors in org.restlet.data with parameters of type Protocol
Constructor and Description
`RecipientInfo(Protocol protocol, java.lang.String name, java.lang.String agent)` Constructor.
`Reference(Protocol protocol, java.lang.String hostName)` Constructor for a protocol and host name.
`Reference(Protocol protocol, java.lang.String hostName, int hostPort)` Constructor for a protocol, host name and host port

### Uses of Protocol in org.restlet.engine

Methods in org.restlet.engine that return types with arguments of type Protocol
Modifier and Type | Method and Description
--- | ---
`java.util.List<Protocol>` | ConnectorHelper.`getProtocols()` Returns the protocols simultaneously supported.

### Uses of Protocol in org.restlet.engine.http

Methods in org.restlet.engine.http that return Protocol
Modifier and Type | Method and Description
--- | ---
`Protocol` | Call.`getProtocol()` Returns the exact protocol (HTTP or HTTPS).

Methods in org.restlet.engine.http with parameters of type Protocol
Modifier and Type | Method and Description
--- | ---
`void` | Call.`setProtocol(Protocol protocol)` Sets the exact protocol used (HTTP or HTTPS).

### Uses of Protocol in org.restlet.resource

Methods in org.restlet.resource that return Protocol
Modifier and Type | Method and Description
--- | ---
`Protocol` | UniformResource.`getProtocol()` Returns the protocol by first returning the resourceRef.schemeProtocol property if it is set, or the baseRef.schemeProtocol property otherwise.

Methods in org.restlet.resource with parameters of type Protocol
Modifier and Type | Method and Description
--- | ---
`void` | ClientResource.`setProtocol(Protocol protocol)` Sets the protocol used or to be used.

### Uses of Protocol in org.restlet.service

Methods in org.restlet.service that return types with arguments of type Protocol
Modifier and Type | Method and Description
--- | ---
`java.util.List<Protocol>` | ConnectorService.`getClientProtocols()` Returns the modifiable list of required client protocols.
`java.util.List<Protocol>` | ConnectorService.`getServerProtocols()` Returns the modifiable list of required server protocols.

Method parameters in org.restlet.service with type arguments of type Protocol
Modifier and Type | Method and Description
--- | ---
`void` | ConnectorService.`setClientProtocols(java.util.List<Protocol> clientProtocols)` Sets the modifiable list of required client protocols.
`void` | ConnectorService.`setServerProtocols(java.util.List<Protocol> serverProtocols)` Sets the modifiable list of required server protocols.

### Uses of Protocol in org.restlet.util

Methods in org.restlet.util that return Protocol
Modifier and Type | Method and Description
--- | ---
`Protocol` | WrapperRequest.`getProtocol()` Returns the protocol by first returning the baseRef.schemeProtocol property if it is set, or the resourceRef.schemeProtocol property otherwise.

Methods in org.restlet.util with parameters of type Protocol
Modifier and Type | Method and Description
--- | ---
`Client` | ClientList.`add(Protocol protocol)` Adds a new client connector in the map supporting the given protocol.
`Server` | ServerList.`add(Protocol protocol)` Adds a new server connector in the map supporting the given protocol.
`Server` | ServerList.`add(Protocol protocol, int port)` Adds a new server connector in the map supporting the given protocol on the specified port.
`Server` | ServerList.`add(Protocol protocol, java.lang.String address, int port)` Adds a new server connector in the map supporting the given protocol on the specified IP address and port.
`void` | WrapperRequest.`setProtocol(Protocol protocol)`