com.sun.xml.ws.encoding
Class ParameterList

java.lang.Object
  extended by com.sun.xml.ws.encoding.ParameterList

final class ParameterList
extends Object

This class holds MIME parameters (attribute-value pairs).


Constructor Summary
ParameterList(String s)
          Constructor that takes a parameter-list string.
 
Method Summary
(package private)  String get(String name)
          Returns the value of the specified parameter.
(package private)  Iterator<String> getNames()
          Return an enumeration of the names of all parameters in this list.
(package private)  int size()
          Return the number of parameters in this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterList

ParameterList(String s)
Constructor that takes a parameter-list string. The String is parsed and the parameters are collected and stored internally. A ParseException is thrown if the parse fails. Note that an empty parameter-list string is valid and will be parsed into an empty ParameterList.

Parameters:
s - the parameter-list string.
Throws:
javax.xml.ws.WebServiceException - if the parse fails.
Method Detail

size

int size()
Return the number of parameters in this list.

Returns:
number of parameters.

get

String get(String name)
Returns the value of the specified parameter. Note that parameter names are case-insensitive.

Parameters:
name - parameter name.
Returns:
Value of the parameter. Returns null if the parameter is not present.

getNames

Iterator<String> getNames()
Return an enumeration of the names of all parameters in this list.

Returns:
Enumeration of all parameter names in this list.