Package org.intermine.bio.webservice
Class FastaQueryService
- java.lang.Object
-
- org.intermine.webservice.server.WebService
-
- org.intermine.webservice.server.query.AbstractQueryService
-
- org.intermine.bio.webservice.BioQueryService
-
- org.intermine.bio.webservice.FastaQueryService
-
- Direct Known Subclasses:
FastaListService
public class FastaQueryService extends BioQueryService
A service for exporting query results as fasta.
-
-
Constructor Summary
Constructors Constructor Description FastaQueryService(org.intermine.api.InterMineAPI im)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckPathQuery(org.intermine.pathquery.PathQuery pq)No-op stub.protected java.lang.StringgetContentType()protected org.intermine.web.logic.export.ExportergetExporter(org.intermine.pathquery.PathQuery pq)protected org.intermine.pathquery.PathQuerygetQuery()Make the path-query to run, and check it has the right number of columns.protected java.lang.StringgetSuffix()protected static intparseExtension(java.lang.String extension)A method for parsing the value of the extension parameter.-
Methods inherited from class org.intermine.bio.webservice.BioQueryService
execute, getDefaultFileName, getDefaultFormat, getDefaultOutput, getOutputStream, getPathQueryViews, getPrintWriter, getQueryPaths
-
Methods inherited from class org.intermine.webservice.server.query.AbstractQueryService
formatIsJsonObj, formatIsNTriples, formatIsRDF, getQueryBuilder, getSchemaLocation, getSchemaUrl
-
Methods inherited from class org.intermine.webservice.server.WebService
canServe, cleanUp, formatIsFlatFile, formatIsJSON, formatIsJSONP, formatIsXML, getAuthenticatedUser, getCallback, getColumnHeaderStyle, getDefaultOutput, getExtension, getFormat, getIntParameter, getIntParameter, getLineBreak, getListManager, getOptionalParameter, getOptionalParameter, getPermission, getProperty, getRawOutput, getRequestFileName, getRequiredParameter, hasCallback, initState, isAuthenticated, isGzip, isUncompressed, isZip, makeJSONOutput, makeXMLOutput, postInit, service, setFormat, setNameSpace, validateState, wantsColumnHeaders, wantsDataPackage
-
-
-
-
Method Detail
-
getSuffix
protected java.lang.String getSuffix()
- Specified by:
getSuffixin classBioQueryService- Returns:
- suffix
-
getContentType
protected java.lang.String getContentType()
- Specified by:
getContentTypein classBioQueryService- Returns:
- content type
-
getExporter
protected org.intermine.web.logic.export.Exporter getExporter(org.intermine.pathquery.PathQuery pq)
- Specified by:
getExporterin classBioQueryService- Parameters:
pq- pathquery- Returns:
- exporter
-
getQuery
protected org.intermine.pathquery.PathQuery getQuery()
Make the path-query to run, and check it has the right number of columns.- Overrides:
getQueryin classBioQueryService- Returns:
- A suitable pathquery for getting FASTA data from.
-
parseExtension
protected static int parseExtension(java.lang.String extension) throws org.intermine.webservice.server.exceptions.BadRequestExceptionA method for parsing the value of the extension parameter. Static and protected for testing purposes.- Parameters:
extension- The extension as provided by the user.- Returns:
- An integer representing the number of base pairs.
- Throws:
org.intermine.webservice.server.exceptions.BadRequestException- If there is a problem interpreting the extension string.
-
checkPathQuery
protected void checkPathQuery(org.intermine.pathquery.PathQuery pq) throws java.lang.ExceptionDescription copied from class:BioQueryServiceNo-op stub. Put query validation here.- Overrides:
checkPathQueryin classBioQueryService- Parameters:
pq- pathquery- Throws:
java.lang.Exception- if something goes wrong
-
-