org.nuiton.io.rest
Class DefaultRestClientConfiguration

java.lang.Object
  extended by org.nuiton.io.rest.DefaultRestClientConfiguration
All Implemented Interfaces:
RestClientConfiguration

public class DefaultRestClientConfiguration
extends Object
implements RestClientConfiguration

Default implementation of a RestClientConfiguration.

Since:
1.0.3
Author:
chemit

Constructor Summary
DefaultRestClientConfiguration()
           
 
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)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultRestClientConfiguration

public DefaultRestClientConfiguration()
Method Detail

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface RestClientConfiguration
Returns:
the encoding used to encode request to send

setEncoding

public void setEncoding(String encoding)
Specified by:
setEncoding in interface RestClientConfiguration
Parameters:
encoding - the encodng used to encode request to set

getRestPassword

public String getRestPassword()
Specified by:
getRestPassword in interface RestClientConfiguration
Returns:
the password to connect to server

setRestPassword

public void setRestPassword(String restPassword)
Specified by:
setRestPassword in interface RestClientConfiguration
Parameters:
restPassword - the password to connect to server to set

getRestUrl

public URL getRestUrl()
Specified by:
getRestUrl in interface RestClientConfiguration
Returns:
base url of server

setRestUrl

public void setRestUrl(URL restUrl)
Specified by:
setRestUrl in interface RestClientConfiguration
Parameters:
restUrl - the url of server to set

getRestUsername

public String getRestUsername()
Specified by:
getRestUsername in interface RestClientConfiguration
Returns:
the username to connect to server

setRestUsername

public void setRestUsername(String restUsername)
Specified by:
setRestUsername in interface RestClientConfiguration
Parameters:
restUsername - the username to connect to server to set

isVerbose

public boolean isVerbose()
Specified by:
isVerbose in interface RestClientConfiguration
Returns:
true to make verbose client (show request and parameters)

setVerbose

public void setVerbose(boolean verbose)
Specified by:
setVerbose in interface RestClientConfiguration
Parameters:
verbose - the flag verbose to set

isAnonymous

public boolean isAnonymous()
Specified by:
isAnonymous in interface RestClientConfiguration
Returns:
true if rest client does not need login

setAnonymous

public void setAnonymous(boolean anonymous)
Specified by:
setAnonymous in interface RestClientConfiguration
Parameters:
anonymous - the flag anonymous to set

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 CodeLutin. All Rights Reserved.