org.openanzo.services.impl
Class WSBaseService

java.lang.Object
  extended by org.openanzo.services.impl.WSBaseService
Direct Known Subclasses:
WSAuthenticationService, WSModelService, WSReplicationService

public class WSBaseService
extends java.lang.Object

BaseService class for connecting to WebService/SOAP based Anzo services.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
WSBaseService(java.util.Properties properties)
          Create new WSBaseService with configuration properties provided in Properties object
WSBaseService(java.lang.String serviceHostName, int servicePort, java.lang.String serviceUser, java.lang.String servicePassword, int serviceTimeout)
          Create new WSBaseService with given configuration properties
 
Method Summary
 java.lang.String getServiceHostName()
          Get the hostname for the webservice
 java.lang.String getServicePassword()
          Get the password for the webservice
 int getServicePort()
          Get the port for the webservice
 java.lang.String getServiceUser()
          Get the user for the webservice.
 void setServiceHostName(java.lang.String serviceHostName)
          Get the hostname for the webservice.
 void setServicePassword(java.lang.String servicePassword)
          Set the password for the webservice
 void setServicePort(int servicePort)
          Set the port for the webservice.
 void setServiceUser(java.lang.String serviceUser)
          Set the user for the webservice.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSBaseService

public WSBaseService(java.util.Properties properties)
Create new WSBaseService with configuration properties provided in Properties object

Parameters:
properties - Configuration properties

WSBaseService

public WSBaseService(java.lang.String serviceHostName,
                     int servicePort,
                     java.lang.String serviceUser,
                     java.lang.String servicePassword,
                     int serviceTimeout)
Create new WSBaseService with given configuration properties

Parameters:
serviceHostName - Hostname for Anzo webservice
servicePort - Port for Anzo webservice
serviceUser - Username for Anzo webservice
servicePassword - Password for Anzo webservice
serviceTimeout - Number of milliseconds to wait before timing out call to server
Method Detail

getServiceHostName

public java.lang.String getServiceHostName()
Get the hostname for the webservice

Returns:
the hostname for the webservice

setServiceHostName

public void setServiceHostName(java.lang.String serviceHostName)
Get the hostname for the webservice. Set the hostname for the webservice.

Parameters:
serviceHostName - the serviceHostName to set

getServicePassword

public java.lang.String getServicePassword()
Get the password for the webservice

Returns:
the password for the webservice

setServicePassword

public void setServicePassword(java.lang.String servicePassword)
Set the password for the webservice

Parameters:
servicePassword - the servicePassword to set

getServicePort

public int getServicePort()
Get the port for the webservice

Returns:
the port for the webservice

setServicePort

public void setServicePort(int servicePort)
Set the port for the webservice.

Parameters:
servicePort - the servicePort to set

getServiceUser

public java.lang.String getServiceUser()
Get the user for the webservice.

Returns:
the user for the webservice.

setServiceUser

public void setServiceUser(java.lang.String serviceUser)
Set the user for the webservice.

Parameters:
serviceUser - the serviceUser to set


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.