ca.ucalgary.services
Class WrapperService<E extends MobySpecWrapper>
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.biomoby.service.MobyServlet
ca.ucalgary.services.LegacyService
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
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 |
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 |
WrapperService
public WrapperService()
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)
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010