Version: 1.1.1

org.biomoby.service.test
Class ConvertAAtoFASTA_AA

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.biomoby.service.MobyServlet
              extended by org.biomoby.service.test.ConvertAAtoFASTA_AA
All Implemented Interfaces:
Serializable, Remote, javax.servlet.Servlet, javax.servlet.ServletConfig

@mobyService(name="ConvertAAtoFASTA_AA",
             type="FormatConversion",
             provider="moby.ucalgary.ca",
             author="gordonp@ucalgary.ca",
             in="inseq:AminoAcidSequence",
             out="outseq:FASTA_AA",
             description={"Converts amino acid objects into FastA formatted records, ","primarily to increase inter-service compatibility"})
public class ConvertAAtoFASTA_AA
extends MobyServlet

Simple service used for exemplary and testing purposes.

See Also:
Serialized Form

Field Summary
 
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
ConvertAAtoFASTA_AA()
           
 
Method Summary
 void processRequest(MobyDataJob request, MobyDataJob result)
          Builds a FastA record from a MOBY AminoAcidSequence object.
 
Methods inherited from class org.biomoby.service.MobyServlet
createServiceFromConfig, destroy, doGet, doPost, getCentralImpl, getMobyContents, getServiceName, init, log, log, main, 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

ConvertAAtoFASTA_AA

public ConvertAAtoFASTA_AA()
Method Detail

processRequest

public void processRequest(MobyDataJob request,
                           MobyDataJob result)
                    throws Exception
Builds a FastA record from a MOBY AminoAcidSequence object. Demonstrates how to access fields of a MOBY object, and how to build a new object.

Overrides:
processRequest in class MobyServlet
Parameters:
request - the request to process, with params guaranteed to be of the type specified in the mobyService annotation, or values overriding the annjotation in a WAR file's WEB-INF/web.xml
Throws:
Exception

Version: 1.1.1

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