no.ntnu.ime.xmlconverter.client
Interface XMLSourceParserService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
XMLSourceParserServiceImpl

@RemoteServiceRelativePath(value="XMLSourceParserService")
public interface XMLSourceParserService
extends com.google.gwt.user.client.rpc.RemoteService


Nested Class Summary
static class XMLSourceParserService.Util
          Utility class for simplifying access to the instance of async service.
 
Method Summary
 boolean isValidSourceURI(java.lang.String sourceAdress)
          Returns true if the given string is a valid resource locator for the XML data.
 java.lang.String parseXMLSource(java.lang.String sourceAdress)
           
 java.lang.String retrieveXMLSource(java.lang.String sourceAddress)
          Retrieves the XML Source to disk.
 

Method Detail

isValidSourceURI

boolean isValidSourceURI(java.lang.String sourceAdress)
                         throws ValidSourceException
Returns true if the given string is a valid resource locator for the XML data.

Parameters:
sourceAdress -
Returns:
Throws:
ValidSourceException

retrieveXMLSource

java.lang.String retrieveXMLSource(java.lang.String sourceAddress)
                                   throws java.lang.RuntimeException
Retrieves the XML Source to disk. Returns a session ID for the source.

Parameters:
sourceAddress -
Returns:
Throws:
java.net.MalformedURLException
java.io.IOException
java.lang.RuntimeException

parseXMLSource

java.lang.String parseXMLSource(java.lang.String sourceAdress)
                                throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException