Package com.dbxml.labrador

Examples of com.dbxml.labrador.Handler


      try {
         Key key = new Key(docName);

         // Let's see if we can interact with Labrador's HTTP Server for REST calls
         BrokerContext context = Broker.getInstance().getBrokerContext();
         Handler handler = context.getHandler();
         Endpoint endpoint = context.getRequestEndpoint();

         boolean restHandler = handler instanceof RESTHandler;
         boolean httpEndpoint = endpoint instanceof HTTPServerBase;
View Full Code Here


   public Document get() throws DBException {
      Document doc = DOMHelper.newDocument();

      // Let's see if we can interact with Labrador's HTTP Server for REST calls
      BrokerContext context = Broker.getInstance().getBrokerContext();
      Handler handler = context.getHandler();
      boolean restHandler = handler instanceof RESTHandler;

      if ( restHandler ) {
         StringBuffer sb = new StringBuffer();
         sb.append("type=\"text/xsl\" href=\"");
View Full Code Here

   }
  
   private void sendError(ResponseWrapper response, int code, String message) throws IOException {
      response.reset();
     
      Handler handler = broker.getBrokerContext().getHandler();
      if ( handler != null ) {
         try {
            handler.processError(response, String.valueOf(code), message);
            if ( response.getContentSize() > 0 ) {
               response.send(code, message);
               return;
            }
         }
View Full Code Here

         content.reset();

         resHdr.put(HTTP.HEADER_CONTENT_TYPE, Headers.TYPE_TEXT_HTML);
         resHdr.put(HTTP.HEADER_CACHE_CONTROL, HTTP.VALUE_NO_CACHE);

         Handler handler = broker.getBrokerContext().getHandler();
         if ( handler != null ) {
            try {
               handler.processError(this, String.valueOf(code), message);
               if ( content.size() > 0 ) {
                  send(code, message);
                  return;
               }
            }
View Full Code Here

   public byte[] get() throws Exception {
      try {
         // Let's see if we can interact with Labrador's HTTP Server for REST calls
         BrokerContext context = Broker.getInstance().getBrokerContext();
         Handler handler = context.getHandler();
         Endpoint endpoint = context.getRequestEndpoint();

         URL url = new URL(uri);
         URLConnection conn = url.openConnection();
         conn.setUseCaches(true);
View Full Code Here

TOP

Related Classes of com.dbxml.labrador.Handler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.