|
||||||||||
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
org.LexGrid.LexBIG.caCore.web.util.LexEVSHTTPQuery
public class LexEVSHTTPQuery
The HTTPQuery servlet interpretes a query request and makes appropriate calls to the Application Service interface. The results are sent back to the user as an XML or HTML document based on the type of request made. XQuery like syntax is used to generate the query. Syntax: http://server:port/servlet/queryType?query=targetClassName&criteriaClassName[@attribute=value][association[@attribute=value]] Please refer to the cacore documentation for more information on generating a query request.
Field Summary | |
---|---|
private String |
cacoreStyleSheet
|
(package private) javax.servlet.ServletContext |
context
|
private static org.apache.log4j.Logger |
log
|
private int |
pageSize
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
LexEVSHTTPQuery()
|
Method Summary | |
---|---|
void |
destroy()
Unload servlet |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles Get requests |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handls Post requests |
org.jdom.Document |
getHTMLDocument(org.jdom.Document doc,
String styleSheet)
Generates an HTML Document for a given XML document with the given stylesheet specification |
private String |
getQuerySyntax()
Returns the query syntax |
void |
init(javax.servlet.ServletConfig config)
Initialize the servlet |
private boolean |
validateQuery(String query)
This method returns true if the query syntax is valid |
org.jdom.Document |
XSLTTransformer(org.jdom.Document xmlDoc,
InputStream styleIn)
Generates an XML or HTML document based on a given stylesheet |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
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 |
Field Detail |
---|
private static final long serialVersionUID
private static org.apache.log4j.Logger log
private String cacoreStyleSheet
private int pageSize
javax.servlet.ServletContext context
Constructor Detail |
---|
public LexEVSHTTPQuery()
Method Detail |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public org.jdom.Document getHTMLDocument(org.jdom.Document doc, String styleSheet) throws Exception
doc
- Specifies the XML documentstyleSheet
- Specifies the stylesheet
Exception
public org.jdom.Document XSLTTransformer(org.jdom.Document xmlDoc, InputStream styleIn) throws Exception
xmlDoc
- Specifies the xml documentstyleIn
- specifies the stylesheet
Exception
private boolean validateQuery(String query) throws Exception
query
- Specifies the http query
Exception
private String getQuerySyntax()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |