no.ubicollab.osgi
Class ClientRequest

java.lang.Object
  extended by no.ubicollab.osgi.ClientRequest

public class ClientRequest
extends java.lang.Object

The Class ClientRequest is intended to store a single request for a service, as registered by a client.

Since:
0.1
Version:
0.5
Author:
Kim-Steve Johansen

Constructor Summary
ClientRequest(int clientId, java.lang.String name, java.lang.String type, java.lang.String location, java.lang.String owner, java.lang.String description)
          This Constructor will create a ClientRequest with clientid, name, type, location, owner and description set.
 
Method Summary
 int getClientID()
           
 java.lang.String getDescription()
          Gets the textual service description.
 java.lang.String getLocation()
          Gets the service location.
 java.lang.String getName()
          Gets the service name.
 java.lang.String getOwner()
          Gets the owner of the service.
 java.lang.String getType()
          Gets the type of service.
 java.lang.String getXML()
          Gets a xml-string representation of the request The returned string is a well formatted XML-string with the following structure: <ClientRequest ClientID="int" Name="String" Type="String" Location="String" Owner="String" Description="String"/>
 void setClientID(int clientID)
           
 void setDescription(java.lang.String description)
          Sets the textual service description.
 void setLocation(java.lang.String location)
          Sets the service location.
 void setName(java.lang.String name)
          Sets the service name.
 void setOwner(java.lang.String owner)
          Sets the owner of the service.
 void setType(java.lang.String type)
          Sets the type of service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientRequest

public ClientRequest(int clientId,
                     java.lang.String name,
                     java.lang.String type,
                     java.lang.String location,
                     java.lang.String owner,
                     java.lang.String description)
This Constructor will create a ClientRequest with clientid, name, type, location, owner and description set.

Parameters:
type - the service type
owner - the owner of the service
description - the textual service description
location - the location of the service
name - the service name
Method Detail

getXML

public java.lang.String getXML()
Gets a xml-string representation of the request

The returned string is a well formatted XML-string with the following structure:

 <ClientRequest ClientID="int" 
   Name="String" 
   Type="String" 
   Location="String"
   Owner="String"
   Description="String"/>
 

Returns:
the String with the request.

getDescription

public java.lang.String getDescription()
Gets the textual service description.

Returns:
the textual service description

setDescription

public void setDescription(java.lang.String description)
Sets the textual service description.

Parameters:
description - the textual service description

getLocation

public java.lang.String getLocation()
Gets the service location.

Returns:
the service location

setLocation

public void setLocation(java.lang.String location)
Sets the service location.

Parameters:
location - the service location

getName

public java.lang.String getName()
Gets the service name.

Returns:
the service name

setName

public void setName(java.lang.String name)
Sets the service name.

Parameters:
name - the service name

getOwner

public java.lang.String getOwner()
Gets the owner of the service.

Returns:
the owner of the service

setOwner

public void setOwner(java.lang.String owner)
Sets the owner of the service.

Parameters:
owner - the owner of the service

getType

public java.lang.String getType()
Gets the type of service.

Returns:
the type of service

setType

public void setType(java.lang.String type)
Sets the type of service.

Parameters:
type - the type of service

getClientID

public int getClientID()

setClientID

public void setClientID(int clientID)