org.jenkinsci.plugins.relution.net
Class RequestQueryFields

java.lang.Object
  extended by org.jenkinsci.plugins.relution.net.RequestQueryFields

public class RequestQueryFields
extends Object


Constructor Summary
RequestQueryFields()
           
 
Method Summary
 void add(String name, String value)
          adding key/value pair to an list which will be switched to an Query which could be append to an URL.
 void clear()
          clear all instance variables.
 String getCharset()
          Gets the character set used when encoding strings.
 void remove(String name)
           
 void setCharset(String charsetName)
          Specifies the character set to use when encoding strings.
 int size()
           
 String toString()
          Switch the key/value Parameter of and list to an Query which could append to an URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestQueryFields

public RequestQueryFields()
Method Detail

getCharset

public String getCharset()
Gets the character set used when encoding strings.


setCharset

public void setCharset(String charsetName)
                throws UnsupportedEncodingException
Specifies the character set to use when encoding strings.

Parameters:
charsetName - The name of the character set to use.
Throws:
IllegalCharsetNameException - if the specified name is illegal.
UnsupportedEncodingException - if the specified character set is unsupported.

add

public void add(String name,
                String value)
adding key/value pair to an list which will be switched to an Query which could be append to an URL.

Parameters:
name - key of the parameter.
value - value of the parameter.

remove

public void remove(String name)
Parameters:
name - value to be removed from the List that could switched to an Query.

clear

public void clear()
clear all instance variables.


size

public int size()
Returns:
size of the list divided by 2.

toString

public String toString()
Switch the key/value Parameter of and list to an Query which could append to an URL.

Overrides:
toString in class Object


Copyright © 2004-2013. All Rights Reserved.