|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IClient
Interface for a general use client which manages the access to other web resources.
Method Summary | |
---|---|
boolean |
IsMimeAvailable(java.net.URI serviceUri,
org.restlet.data.MediaType mime,
boolean followRedirects)
Checks if the specified MIME is available at the given URI. |
boolean |
isServerAlive(java.net.URI serverUri,
int attempts)
Checks if a server is alive. |
Method Detail |
---|
boolean isServerAlive(java.net.URI serverUri, int attempts) throws java.lang.InterruptedException
serverUri
- The URI of the server as a URI
attempts
- Number of attempts. In case of failure on the first try
, defines how many times the client should repeat the request (if possible)
until a positive response is returned from the server, otherwise the method
returns Boolean.FALSE
.
java.lang.InterruptedException
boolean IsMimeAvailable(java.net.URI serviceUri, org.restlet.data.MediaType mime, boolean followRedirects)
serviceUri
- URI of the service.mime
- Prefered MIME type.followRedirects
- Whether to follow redirections.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |