org.objectweb.jotm.btp.axis
Class WebService

java.lang.Object
  |
  +--org.objectweb.jotm.btp.axis.WebService
Direct Known Subclasses:
Actor

public class WebService
extends Object

WebService is an object tool with some utilities methods.


Field Summary
protected  String url_
          the url of the web service
 
Constructor Summary
WebService()
           
 
Method Summary
 String buildURI(String fragment)
          builds the URI form the current URL and a string
 String buildURI(String url, String fragment)
          builds the URI from a given url and string
 String getTransactionIdentifierFromUri(String str)
          returns the string representation of the transaction id, from a given URI.
 String getUrl()
          returns the url of the current web service
 String getUrlFromUri(String str)
          returns the string representation of the URL from a given URI
 String getWsddParameter(String pname)
           
 boolean isLocalUri(String str)
          returns true if the given URI is from the current URL, else false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url_

protected String url_
the url of the web service

Constructor Detail

WebService

public WebService()
Method Detail

getUrl

public String getUrl()
returns the url of the current web service

Returns:
a string representation of the url

getWsddParameter

public String getWsddParameter(String pname)

buildURI

public String buildURI(String fragment)
builds the URI form the current URL and a string

Parameters:
fragment - a string to build the URI
Returns:
the string representation of the URI

buildURI

public String buildURI(String url,
                       String fragment)
builds the URI from a given url and string

Parameters:
url - the string representation of the url
fragment - a string
Returns:
the string representation of the URI

getTransactionIdentifierFromUri

public String getTransactionIdentifierFromUri(String str)
returns the string representation of the transaction id, from a given URI.

Parameters:
str - the string representation of an URI

getUrlFromUri

public String getUrlFromUri(String str)
returns the string representation of the URL from a given URI

Parameters:
str - the string representation of an URI
Returns:
the string representation of the URL

isLocalUri

public boolean isLocalUri(String str)
returns true if the given URI is from the current URL, else false.

Parameters:
str - the string representation of the URI
Returns:
true, if the given URI is from the local URL, else false.