Class VitroRequest

  • All Implemented Interfaces:
    javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

    public class VitroRequest
    extends javax.servlet.http.HttpServletRequestWrapper
    • Constructor Detail

      • VitroRequest

        public VitroRequest​(javax.servlet.http.HttpServletRequest _req)
    • Method Detail

      • getRDFService

        public RDFService getRDFService()
      • getUnfilteredRDFService

        public RDFService getUnfilteredRDFService()
      • getWebappDaoFactory

        public WebappDaoFactory getWebappDaoFactory()
        Gets WebappDaoFactory with appropriate filtering for the request
      • getUnfilteredWebappDaoFactory

        public WebappDaoFactory getUnfilteredWebappDaoFactory()
        gets assertions+inference WebappDaoFactory with no policy filtering
      • getUnfilteredAssertionsWebappDaoFactory

        public WebappDaoFactory getUnfilteredAssertionsWebappDaoFactory()
        gets assertions-only WebappDaoFactory with no policy filtering
      • getDataset

        public org.apache.jena.query.Dataset getDataset()
      • getUnfilteredDataset

        public org.apache.jena.query.Dataset getUnfilteredDataset()
      • getWriteModel

        public org.apache.jena.ontology.OntModel getWriteModel()
      • getJenaOntModel

        public org.apache.jena.ontology.OntModel getJenaOntModel()
      • getDisplayModel

        public org.apache.jena.ontology.OntModel getDisplayModel()
      • getIdForDisplayModel

        public String getIdForDisplayModel()
        Gets an identifier for the display model associated with this request. It may have been switched from the normal display model to a different one. This could be a URI or a VitroModelSource.ModelName
      • getNameForABOXModel

        public String getNameForABOXModel()
        Gets an identifier for the a-box model associated with this request. It may have been switched from the standard one to a different one. This could be a URI or a VitroModelSource.ModelName
      • getNameForTBOXModel

        public String getNameForTBOXModel()
        Gets an identifier for the t-box model associated with this request. It may have been switched from the standard one to a different one. This could be a URI or a VitroModelSource.ModelName
      • getNameForWriteModel

        public String getNameForWriteModel()
        Gets an identifier for the write model associated with this request. It may have been switched from the standard one to a different one. This could be a URI or a VitroModelSource.ModelName
      • getClientAddr

        public String getClientAddr()
        Gets the the ip of the client. This will be X-forwarded-for header or, if that header is not set, getRemoteAddr(). This still may not be the client's address as they may be using a proxy.
      • getParameterMap

        public Map<String,​String[]> getParameterMap()
        Specified by:
        getParameterMap in interface javax.servlet.ServletRequest
        Overrides:
        getParameterMap in class javax.servlet.ServletRequestWrapper
      • getParameter

        public String getParameter​(String name)
        Specified by:
        getParameter in interface javax.servlet.ServletRequest
        Overrides:
        getParameter in class javax.servlet.ServletRequestWrapper
      • getParameterValues

        public String[] getParameterValues​(String name)
        Specified by:
        getParameterValues in interface javax.servlet.ServletRequest
        Overrides:
        getParameterValues in class javax.servlet.ServletRequestWrapper
      • getLanguageNeutralUnionFullModel

        public org.apache.jena.ontology.OntModel getLanguageNeutralUnionFullModel()
      • setCollator

        public void setCollator​(Collator collator)
      • getCollator

        public Collator getCollator()
      • getLanguageNeutralWebappDaoFactory

        public WebappDaoFactory getLanguageNeutralWebappDaoFactory()
      • isMultipart

        public boolean isMultipart()
      • getFiles

        public Map<String,​List<org.apache.commons.fileupload.FileItem>> getFiles()
      • getFileItem

        public org.apache.commons.fileupload.FileItem getFileItem​(String name)
        There may be more than one file item with the given name. If the first one is empty (size is zero), keep looking for a non-empty one.
      • hasFileSizeException

        public boolean hasFileSizeException()
        If the uploaded file exceeded the maximum size, and if the strategy said to stash the exception, it will be stored as a request attribute.
      • getFileSizeException

        public org.apache.commons.fileupload.FileUploadException getFileSizeException()
        Could be either FileSizeLimitExceededException or SizeLimitExceededException, so return their common ancestor.