org.openrdf.http.server.repository
Class QueryResultView

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

public abstract class QueryResultView
extends java.lang.Object
implements org.springframework.web.servlet.View

Base class for rendering query results.

Author:
Herko ter Horst, Arjohn Kampman

Field Summary
static java.lang.String FACTORY_KEY
          Key by which the query result writer factory is stored in the model.
static java.lang.String FILENAME_HINT_KEY
          Key by which a filename hint is stored in the model.
static java.lang.String QUERY_RESULT_KEY
          Key by which the query result is stored in the model.
 
Constructor Summary
QueryResultView()
           
 
Method Summary
protected  void logEndOfRequest(javax.servlet.http.HttpServletRequest request)
           
protected  void setContentDisposition(java.util.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.web.servlet.View
getContentType, render
 

Field Detail

QUERY_RESULT_KEY

public static final java.lang.String QUERY_RESULT_KEY
Key by which the query result is stored in the model.

See Also:
Constant Field Values

FACTORY_KEY

public static final java.lang.String FACTORY_KEY
Key by which the query result writer factory is stored in the model.

See Also:
Constant Field Values

FILENAME_HINT_KEY

public static final java.lang.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:
Constant Field Values
Constructor Detail

QueryResultView

public QueryResultView()
Method Detail

setContentType

protected void setContentType(javax.servlet.http.HttpServletResponse response,
                              FileFormat fileFormat)
                       throws java.io.IOException
Throws:
java.io.IOException

setContentDisposition

protected void setContentDisposition(java.util.Map model,
                                     javax.servlet.http.HttpServletResponse response,
                                     FileFormat fileFormat)
                              throws java.io.IOException
Throws:
java.io.IOException

logEndOfRequest

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


Copyright © 2001-2010 Aduna. All Rights Reserved.