Package com.caucho.ejb.protocol

Examples of com.caucho.ejb.protocol.Skeleton


      InputStream is = req.getInputStream();

      if (_isDebug) {
      }

      Skeleton skeleton  = (Skeleton) _beanMap.get(cb);

      if (skeleton == null) {
        // If this was a load just to force the initialization, then return
        if (req.getParameter("ejb-load") != null)
          return;
     
        if (_exception != null)
          throw _exception;

        try {
          if (pathInfo == null)
            pathInfo = "";

          skeleton = _protocolContainer.getSkeleton(pathInfo, queryString);
        } catch (Exception e) {
          log.log(Level.WARNING, e.toString(), e);

          skeleton = _protocolContainer.getExceptionSkeleton();

          if (skeleton != null) {
            skeleton._service(req.getInputStream(), res.getOutputStream(), e);

            return;
          }
          else
            throw e;
        }

        if (skeleton == null)
          throw new ServletException(L.l("Can't load skeleton for '{0}?{1}'",
                                         pathInfo, queryString));

        if (skeleton != null) {
          skeleton.setDebug(_isDebug);
          _beanMap.put(cb, skeleton);
        }
      }

      skeleton._service(req.getInputStream(), res.getOutputStream());
    } catch (ServletException e) {
      e.printStackTrace();
      throw e;
    } catch (Throwable e) {
      e.printStackTrace();
View Full Code Here


    CharBuffer cb = CharBuffer.allocate();
    cb.append(pathInfo);
    cb.append('?');
    cb.append(queryString);
   
    Skeleton skeleton = (Skeleton) _beanMap.get(cb);
   
    if (skeleton != null) {
      cb.free();
      return skeleton;
    }
View Full Code Here

      InputStream is = req.getInputStream();

      if (_isDebug) {
      }

      Skeleton skeleton  = (Skeleton) _beanMap.get(cb);

      if (skeleton == null) {
        // If this was a load just to force the initialization, then return
        if (req.getParameter("ejb-load") != null)
          return;
     
        if (_exception != null)
          throw _exception;

  try {
    if (pathInfo == null)
      pathInfo = "";
   
    skeleton = _protocolContainer.getSkeleton(pathInfo, queryString);
  } catch (Exception e) {
    log.log(Level.WARNING, e.toString(), e);
   
    skeleton = _protocolContainer.getExceptionSkeleton();

    if (skeleton != null) {
      skeleton._service(req.getInputStream(), res.getOutputStream(), e);

      return;
    }
    else
      throw e;
  }

        if (skeleton == null)
          throw new ServletException(L.l("Can't load skeleton for '{0}?{1}'",
                                         pathInfo, queryString));

        if (skeleton != null) {
    skeleton.setDebug(_isDebug);
          _beanMap.put(cb, skeleton);
  }
      }

      skeleton._service(req.getInputStream(), res.getOutputStream());
    } catch (ServletException e) {
      e.printStackTrace();
      throw e;
    } catch (Throwable e) {
      e.printStackTrace();
View Full Code Here

    CharBuffer cb = CharBuffer.allocate();
    cb.append(pathInfo);
    cb.append('?');
    cb.append(queryString);
   
    Skeleton skeleton = (Skeleton) _beanMap.get(cb);
   
    if (skeleton != null) {
      cb.free();
      return skeleton;
    }
View Full Code Here

TOP

Related Classes of com.caucho.ejb.protocol.Skeleton

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.