|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.timeindexing.servlet.SelectServlet
public class SelectServlet
This servlet selects data from an index. Data is specified for an index, given a start time and an end time.
If an error occurs when checking the servlet setup or in the arguments are incorrect the response goes through various jsp files. The following values are currently defined as web.xml context-params, shown here with their default values.
| param-name | param-value |
| norepositorypage | /error/no_repository.jsp |
| noindexspecifiedpage | /error/no_index.jsp |
| nosecuritycodepage | /error/no_code.jsp |
| badsecuritycodepage | /error/bad_code.jsp |
| selectexceptionpage | //error/select_exception.jsp |
If an excpetion occurs, the exception is placed in the request
attribute "exception".
The response is presented through /error/select_exception.jsp.
| Nested Class Summary | |
|---|---|
class |
SelectServlet.WriterOutputStream
Wrap a Writer as an Output Stream. |
| Constructor Summary | |
|---|---|
SelectServlet()
|
|
| Method Summary | |
|---|---|
protected Selecter |
allocateSelecter(java.lang.String filename,
java.io.OutputStream out)
allocate a Selecter |
void |
closed(IndexPrimaryEvent ipe)
A notification that an Index has been closed. |
void |
committed(IndexPrimaryEvent ipe)
A notification that an Index has been committed. |
void |
created(IndexPrimaryEvent ipe)
A notification that an Index has been created. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected int |
doPlayBack(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IndexProperties properties,
int passedInStatus)
Playback the data. |
protected boolean |
empty(java.lang.String name)
Is a value empty. |
protected java.lang.String |
fileNameGenerator(IndexProperties properties)
This filename generator, takes the arguments and generates a useful filename. |
protected java.lang.String |
getContentType()
Get the content type for this response. |
void |
init(javax.servlet.ServletConfig config)
Init the servlet. |
protected boolean |
isBrowser(javax.servlet.http.HttpServletRequest request)
Is the client a browser. |
protected boolean |
isSecurityCodeOn()
Is security on. |
void |
opened(IndexPrimaryEvent ipe)
A notification that an Index has been opened. |
protected void |
postPlaybackError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
int status)
This is called if there is an error during to playback. |
protected void |
prePlaybackError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
int status)
This is called if there is an error prior to playback. |
protected void |
setContentType(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String type)
Set the content type. |
protected void |
setFilename(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IndexProperties properties)
Set the filename for downloads. |
void |
viewAdded(IndexPrimaryEvent ipe)
A notification that a view has been added to an Index. |
void |
viewRemoved(IndexPrimaryEvent ipe)
A notification that a view has been removed to an Index. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectServlet()
| Method Detail |
|---|
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletjava.io.IOException
javax.servlet.ServletException
protected int doPlayBack(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IndexProperties properties,
int passedInStatus)
throws java.io.IOException
java.io.IOException
protected void prePlaybackError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
int status)
throws java.io.IOException
java.io.IOException
protected void postPlaybackError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
int status)
throws java.io.IOException
java.io.IOExceptionprotected boolean empty(java.lang.String name)
protected boolean isBrowser(javax.servlet.http.HttpServletRequest request)
protected boolean isSecurityCodeOn()
protected Selecter allocateSelecter(java.lang.String filename,
java.io.OutputStream out)
protected void setContentType(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String type)
protected java.lang.String getContentType()
protected void setFilename(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IndexProperties properties)
protected java.lang.String fileNameGenerator(IndexProperties properties)
public void opened(IndexPrimaryEvent ipe)
opened in interface IndexPrimaryEventListenerpublic void closed(IndexPrimaryEvent ipe)
closed in interface IndexPrimaryEventListenerpublic void committed(IndexPrimaryEvent ipe)
committed in interface IndexPrimaryEventListenerpublic void created(IndexPrimaryEvent ipe)
created in interface IndexPrimaryEventListenerpublic void viewAdded(IndexPrimaryEvent ipe)
viewAdded in interface IndexPrimaryEventListenerpublic void viewRemoved(IndexPrimaryEvent ipe)
viewRemoved in interface IndexPrimaryEventListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||