org.infoglue.cms.util.webservices
Class WebServiceHelper

java.lang.Object
  |
  +--org.infoglue.cms.util.webservices.WebServiceHelper

public class WebServiceHelper
extends java.lang.Object

This class helps in requesting information from an webservice.

Author:
Mattias Bogeblad

Constructor Summary
WebServiceHelper()
          The constructor for this class.
 
Method Summary
 java.util.Collection getCollection(java.lang.String method)
          This is the method that lets you call the endpoint and get a list of values back.
 boolean getIsSuccessfull()
          This method returns true if the request to the webservice returned successfully.
 java.util.Map getMap()
          A helper method that lets the template get hold of a Map-object to populate.
 java.util.Map getMap(java.lang.String method)
          This is the method that lets you call the endpoint and get a map of values back.
 java.util.Map getMap(java.lang.String method, java.util.Map argument)
          This is the method that lets you call the endpoint and get a map of values back.
 java.lang.String getMessage()
          This method returns any message coming from the webservice.
 java.lang.String getServiceUrl()
          A method to set the serviceUrl which is the endpoint of this call.
 java.lang.String getString(java.lang.String method)
          This is the method that lets you call the endpoint and get a single string-value back.
 void setIsSuccessfull(boolean isSuccessfull)
          This method sets if the request to the webservice returned successfully.
 void setMessage(java.lang.String message)
          This method sets a message from the webservice.
 void setServiceUrl(java.lang.String serviceUrl)
          A method to get the serviceUrl which is the endpoint of this call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceHelper

public WebServiceHelper()
The constructor for this class.

Method Detail

getServiceUrl

public java.lang.String getServiceUrl()
A method to set the serviceUrl which is the endpoint of this call.


setServiceUrl

public void setServiceUrl(java.lang.String serviceUrl)
A method to get the serviceUrl which is the endpoint of this call.


getString

public java.lang.String getString(java.lang.String method)
This is the method that lets you call the endpoint and get a single string-value back.


getCollection

public java.util.Collection getCollection(java.lang.String method)
This is the method that lets you call the endpoint and get a list of values back.


getMap

public java.util.Map getMap(java.lang.String method)
This is the method that lets you call the endpoint and get a map of values back.


getMap

public java.util.Map getMap(java.lang.String method,
                            java.util.Map argument)
This is the method that lets you call the endpoint and get a map of values back.


getMap

public java.util.Map getMap()
A helper method that lets the template get hold of a Map-object to populate.


getIsSuccessfull

public boolean getIsSuccessfull()
This method returns true if the request to the webservice returned successfully.


setIsSuccessfull

public void setIsSuccessfull(boolean isSuccessfull)
This method sets if the request to the webservice returned successfully.


getMessage

public java.lang.String getMessage()
This method returns any message coming from the webservice.


setMessage

public void setMessage(java.lang.String message)
This method sets a message from the webservice.



Copyright © 2003 InfoGlue.org All Rights Reserved.