org.nuiton.io.rest
Interface RestClientConfiguration

All Known Implementing Classes:
DefaultRestClientConfiguration

public interface RestClientConfiguration

Contract of a RestClient.

Since:
1.0.3
Author:
tchemit

Method Summary
 String getEncoding()
           
 String getRestPassword()
           
 URL getRestUrl()
           
 String getRestUsername()
           
 boolean isAnonymous()
           
 boolean isVerbose()
           
 void setAnonymous(boolean anonymous)
           
 void setEncoding(String encoding)
           
 void setRestPassword(String restPassword)
           
 void setRestUrl(URL restUrl)
           
 void setRestUsername(String restUsername)
           
 void setVerbose(boolean verbose)
           
 

Method Detail

getRestUrl

URL getRestUrl()
Returns:
base url of server

getEncoding

String getEncoding()
Returns:
the encoding used to encode request to send

getRestUsername

String getRestUsername()
Returns:
the username to connect to server

getRestPassword

String getRestPassword()
Returns:
the password to connect to server

isVerbose

boolean isVerbose()
Returns:
true to make verbose client (show request and parameters)

isAnonymous

boolean isAnonymous()
Returns:
true if rest client does not need login

setRestUrl

void setRestUrl(URL restUrl)
Parameters:
restUrl - the url of server to set

setRestPassword

void setRestPassword(String restPassword)
Parameters:
restPassword - the password to connect to server to set

setRestUsername

void setRestUsername(String restUsername)
Parameters:
restUsername - the username to connect to server to set

setEncoding

void setEncoding(String encoding)
Parameters:
encoding - the encodng used to encode request to set

setVerbose

void setVerbose(boolean verbose)
Parameters:
verbose - the flag verbose to set

setAnonymous

void setAnonymous(boolean anonymous)
Parameters:
anonymous - the flag anonymous to set


Copyright © 2009-2010 CodeLutin. All Rights Reserved.