Class QueryResultView

java.lang.Object
org.eclipse.rdf4j.http.server.repository.QueryResultView
All Implemented Interfaces:
org.springframework.web.servlet.View
Direct Known Subclasses:
BooleanQueryResultView, GraphQueryResultView, TupleQueryResultView

public abstract class QueryResultView extends Object implements org.springframework.web.servlet.View
Base class for rendering query results.
Author:
Herko ter Horst, Arjohn Kampman
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Key by which the current RepositoryConnection is stored in the Model.
    static final String
    Key by which the query result writer factory is stored in the model.
    static final String
    Key by which a filename hint is stored in the model.
    static final String
     
    static final String
    Key by which the query result is stored in the model.

    Fields inherited from interface org.springframework.web.servlet.View Link icon

    PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    protected void
    logEndOfRequest(javax.servlet.http.HttpServletRequest request)
     
    final void
    render(Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected abstract void
    renderInternal(Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected void
    setContentDisposition(Map model, javax.servlet.http.HttpServletResponse response, FileFormat fileFormat)
     
    protected void
    setContentType(javax.servlet.http.HttpServletResponse response, FileFormat fileFormat)
     

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.servlet.View Link icon

    getContentType
  • Field Details Link icon

    • QUERY_RESULT_KEY Link icon

      public static final String QUERY_RESULT_KEY
      Key by which the query result is stored in the model.
      See Also:
    • FACTORY_KEY Link icon

      public static final String FACTORY_KEY
      Key by which the query result writer factory is stored in the model.
      See Also:
    • FILENAME_HINT_KEY Link icon

      public static final String FILENAME_HINT_KEY
      Key by which a filename hint is stored in the model. The filename hint may be used to present the client with a suggestion for a filename to use for storing the result.
      See Also:
    • CONNECTION_KEY Link icon

      public static final String CONNECTION_KEY
      Key by which the current RepositoryConnection is stored in the Model. If this is present, the QueryResultView will take care to close the connection after processing the query result.
      See Also:
    • HEADERS_ONLY Link icon

      public static final String HEADERS_ONLY
      See Also:
  • Constructor Details Link icon

    • QueryResultView Link icon

      public QueryResultView()
  • Method Details Link icon

    • render Link icon

      public final void render(Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Specified by:
      render in interface org.springframework.web.servlet.View
      Throws:
      IOException
    • renderInternal Link icon

      protected abstract void renderInternal(Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Throws:
      IOException
    • setContentType Link icon

      protected void setContentType(javax.servlet.http.HttpServletResponse response, FileFormat fileFormat) throws IOException
      Throws:
      IOException
    • setContentDisposition Link icon

      protected void setContentDisposition(Map model, javax.servlet.http.HttpServletResponse response, FileFormat fileFormat) throws IOException
      Throws:
      IOException
    • logEndOfRequest Link icon

      protected void logEndOfRequest(javax.servlet.http.HttpServletRequest request)