org.fosstrak.epcis.queryclient
Class QueryCallbackClient

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.fosstrak.epcis.queryclient.QueryCallbackClient
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, QueryCallbackInterface

public class QueryCallbackClient
extends javax.servlet.http.HttpServlet
implements QueryCallbackInterface

Author:
Marco Steybe
See Also:
Serialized Form

Constructor Summary
QueryCallbackClient()
           
 
Method Summary
 void callbackImplementationException(ImplementationException e)
          Performs a callback for a standing query when the query threw a ImplementationException.
static void callbackQueryResults(String result)
          Performs a callback for a standing query.
 void callbackQueryTooLargeException(QueryTooLargeException e)
          Performs a callback for a standing query when the query threw a QueryTooLargeException.
 void callbackResults(QueryResults result)
          Performs a callback for a standing query.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
          
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
          
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCallbackClient

public QueryCallbackClient()
Method Detail

callbackResults

public void callbackResults(QueryResults result)
Performs a callback for a standing query. When the callback returns, the given QueryResults object will be populated with a result of a standing query.

Specified by:
callbackResults in interface QueryCallbackInterface
Parameters:
result - The QueryResults object to be populated.
See Also:
org.fosstrak.epcis.queryclient.QueryCallbackInterface#callbackResults(org.fosstrak.epcis.soapapi.QueryResults)

callbackQueryResults

public static void callbackQueryResults(String result)
Performs a callback for a standing query. When the callback returns, the given String will be populated with an XML representation of a standing query result.

Parameters:
result - The String to be populated.

callbackImplementationException

public void callbackImplementationException(ImplementationException e)
Performs a callback for a standing query when the query threw a ImplementationException. When the callback returns, the given ImplementationException object will be populated with the corresponding exception.

Specified by:
callbackImplementationException in interface QueryCallbackInterface
Parameters:
e - The ImplementationException to be populated
See Also:
org.fosstrak.epcis.queryclient.QueryCallbackInterface#callbackImplementationException(org.fosstrak.epcis.soapapi.ImplementationException)

callbackQueryTooLargeException

public void callbackQueryTooLargeException(QueryTooLargeException e)
Performs a callback for a standing query when the query threw a QueryTooLargeException. When the callback returns, the given QueryTooLargeException object will be populated with the corresponding exception.

Specified by:
callbackQueryTooLargeException in interface QueryCallbackInterface
Parameters:
e - The QueryTooLargeException to be populated
See Also:
org.fosstrak.epcis.queryclient.QueryCallbackInterface#callbackQueryTooLargeException(org.fosstrak.epcis.soapapi.QueryTooLargeException)

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse rsp)
            throws javax.servlet.ServletException,
                   IOException

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException
See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse rsp)
           throws javax.servlet.ServletException,
                  IOException

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException
See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)


Copyright © 2010. All Rights Reserved.