com.sun.identity.liberty.ws.disco
クラス RequestedService

java.lang.Object
  上位を拡張 com.sun.identity.liberty.ws.disco.RequestedService

public class RequestedService
extends Object

The class RequestedService enables the requester to specify that all the resource offerings returned must be offered via a service instance complying with one of the specified service type.

The following schema fragment specifies the expected content within the RequestedService object.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{urn:liberty:disco:2003-08}ServiceType"/>
         <element ref="{urn:liberty:disco:2003-08}Options" minOccurs="0"/>
   *       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

 In this implementation, the value of Options has the following meanings:
 When the List of options is null, no Options element will be created;
 When the List of options is an empty List, or is Collection.EMPTY_LIST,
        empty Options element <Options></Options> will be created;
 When the List of options is not empty,
        Options element with child Option element(s) will be created.
 


コンストラクタの概要
RequestedService(Element elem)
          Constructor.
RequestedService(List options, String serviceType)
          Constructor.
 
メソッドの概要
 List getOptions()
          Gets list of options.
 String getServiceType()
          Gets service type.
 void setOptions(List options)
          Sets options.
 void setServiceType(String serviceType)
          Sets service type.
 String toString()
          Returns string format of object RequestedServiceType.
 

コンストラクタの詳細

RequestedService

public RequestedService(List options,
                        String serviceType)
Constructor.

パラメータ:
options - List of String, each is a URI specifying an option the returned resource offering should support.
serviceType - URI specifying the type of service to be returned

RequestedService

public RequestedService(Element elem)
                 throws DiscoveryException
Constructor.

パラメータ:
elem - RequestedService DOM element
例外:
DiscoveryException - if error occurs
メソッドの詳細

getOptions

public List getOptions()
Gets list of options.

戻り値:
List of options
関連項目:
RequestedService.setOptions(List)

setOptions

public void setOptions(List options)
Sets options.

パラメータ:
options - List of option to be set
関連項目:
RequestedService.getOptions()

getServiceType

public String getServiceType()
Gets service type.

戻り値:
service type String
関連項目:
RequestedService.setServiceType(String)

setServiceType

public void setServiceType(String serviceType)
Sets service type.

パラメータ:
serviceType - String
関連項目:
RequestedService.getServiceType()

toString

public String toString()
Returns string format of object RequestedServiceType.

オーバーライド:
クラス Object 内の toString
戻り値:
formatted string.