Version: 1.1.1

ca.ucalgary.services
Class WrapperService<E extends MobySpecWrapper>

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.biomoby.service.MobyServlet
              extended by ca.ucalgary.services.LegacyService
                  extended by ca.ucalgary.services.WrapperService<E>
All Implemented Interfaces:
Serializable, Remote, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
CGIService, WSDLService

public abstract class WrapperService<E extends MobySpecWrapper>
extends LegacyService

Based class for servlets implementing a Moby wrapper around existing Web-based interface specifications enhanced with semantic info (represented in a MobySpecWrapper), such as WSDL and CGI services.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ca.ucalgary.services.LegacyService
MOBY_RULES_DEFAULT_RESOURCE, MOBY_RULES_LOCATION_PARAM, TEXT_RULES_DEFAULT_RESOURCE, TEXT_RULES_LOCATION_PARAM
 
Fields inherited from class org.biomoby.service.MobyServlet
ADMIN_MODE, INIT_OUTPUT_BUFFER_SIZE, MOBY_AUTHORITATIVE_PARAM, MOBY_CENTRAL_URL_PARAM, MOBY_CONTACT_PARAM, MOBY_INPUT_PARAM, MOBY_OUTPUT_PARAM, MOBY_PROVIDER_URI_PARAM, MOBY_SECONDARYINPUT_PARAM, MOBY_SERVICE_DESC_PARAM, MOBY_SERVICENAME_PARAM, MOBY_SERVICETYPE_PARAM, MODE_HTTP_PARAM, RDF_MODE
 
Constructor Summary
WrapperService()
           
 
Method Summary
abstract  String createInputSpecString(E wrapperSpec)
           
abstract  String createOutputSpecString(E wrapperSpec)
           
abstract  String createSecondarySpecString(E wrapperSpec)
           
 MobyService createServiceFromConfig(javax.servlet.http.HttpServletRequest request, E wrapperSpec)
           
 URL getSpecURL(String configParamName)
           
 
Methods inherited from class ca.ucalgary.services.LegacyService
createServiceFromConfig
 
Methods inherited from class org.biomoby.service.MobyServlet
destroy, doGet, doPost, getCentralImpl, getMobyContents, getServiceName, init, log, log, main, processRequest, processRequests, setCoCInitParameter, setMainTerminationExit, stringToPrimaryDataTemplate, stringToSecondaryDataTemplate, validateArguments
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperService

public WrapperService()
Method Detail

getSpecURL

public URL getSpecURL(String configParamName)
               throws Exception
Parameters:
configParamName - the name of the servlet configuration parameter holding the exisiting service spec's location (e.g. where is the WSDL file or CGI form to be wrapped?)
Throws:
Exception - if the parameter specified cannot be found, or it cannot be turned into a valid URL

createServiceFromConfig

public MobyService createServiceFromConfig(javax.servlet.http.HttpServletRequest request,
                                           E wrapperSpec)
                                    throws Exception
Throws:
Exception

createInputSpecString

public abstract String createInputSpecString(E wrapperSpec)

createOutputSpecString

public abstract String createOutputSpecString(E wrapperSpec)

createSecondarySpecString

public abstract String createSecondarySpecString(E wrapperSpec)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010