Package pt.opensoft.host

Examples of pt.opensoft.host.HostProxy


      throw new HostUnavailableSystemException(e.getMessage());
    }
  }

  protected String process (Resource r1, Resource r2, Object backingBean, FacesRequest request) throws Exception {
    HostProxy proxy = r1 != null ? ((HostProxyResource)r1).getHostProxy() : null;
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc = r2 != null ? ((JDBCResource) r2).getDBConnect() : null;
    return process(proxy, dbc, backingBean, request);
  }
View Full Code Here


  }

  protected abstract String process (HostProxy proxy, DBConnect dbc, Object backingBean, FacesRequest request) throws Exception;

  protected String validate (Resource r1, Resource r2, Object backingBean, FacesRequest request) throws Exception{
    HostProxy proxy = ((HostProxyResource)r1).getHostProxy();
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc = ((JDBCResource) r2).getDBConnect();
    return validate(proxy, dbc, backingBean, request);
  }
View Full Code Here

      throw new HostUnavailableSystemException(e.getMessage());
    }
  }

  protected Response process (Resource r1, Resource r2, Resource r3, Request request) throws Exception {
    HostProxy proxy = r1 != null ? ((HostProxyResource)r1).getHostProxy() : null;
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc1 = r2 != null ? ((JDBCResource) r2).getDBConnect() : null;
    DBConnect dbc2 = r3 != null ? ((JDBCResource) r3).getDBConnect() : null;
   
    return process(proxy, dbc1, dbc2, request);
  }
View Full Code Here

  }

  protected abstract Response process (HostProxy proxy, DBConnect dbc1, DBConnect dbc2, Request request) throws Exception;

  protected InvalidRequest validate (Resource r1, Resource r2, Resource r3, Request request) throws Exception {
    HostProxy proxy = ((HostProxyResource)r1).getHostProxy();
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc1 = ((JDBCResource) r2).getDBConnect();
    DBConnect dbc2 = ((JDBCResource) r3).getDBConnect();
    return validate(proxy, dbc1, dbc2, request);
  }
View Full Code Here

  }

  protected abstract InvalidRequest validate (HostProxy proxy, DBConnect dbc1, DBConnect dbc2, Request request) throws Exception;

  protected Response render (Resource r1, Resource r2, Resource r3, Request request, InvalidRequest invalid) throws Exception {
    HostProxy proxy = r1 != null ? ((HostProxyResource)r1).getHostProxy() : null;
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc1 = r2 != null ? ((JDBCResource) r2).getDBConnect() : null;
    DBConnect dbc2 = r3 != null ? ((JDBCResource) r3).getDBConnect() : null;
    return render(proxy, dbc1, dbc2, request, invalid);
  }
View Full Code Here

  public JSFHostTransaction(String app, String name, String resourceName, long resourceTimeout) {
    super(app, name, resourceName, resourceTimeout);
  }

  protected String process(Resource resource, Object backingBean, FacesRequest request) throws Exception {
    HostProxy proxy = ((HostProxyResource)resource).getHostProxy();
    return process(proxy, backingBean, request);
  }
View Full Code Here

  protected abstract String process(HostProxy dbc, Object backingBean, FacesRequest request)
      throws Exception;

  protected String validate(Resource resource, Object backingBean, FacesRequest request) throws Exception {
    HostProxy proxy = ((HostProxyResource)resource).getHostProxy();
        if (proxy != null) proxy.setLogger(logger);
    return validate(proxy, backingBean, request);
  }
View Full Code Here

    super(name, r1Name, r1Timeout, r2Name, r2Timeout, r3Name, r3Timeout);
 
 

  protected void execute (Resource r1, Resource r2, Resource r3) throws Exception {
    HostProxy proxy = ((HostProxyResource)r1).getHostProxy();
    proxy.setLogger(logger);
    DBConnect dbc1 = ((JDBCResource)r2).getDBConnect();
    DBConnect dbc2 = ((JDBCResource)r3).getDBConnect();
    execute(proxy, dbc1, dbc2);
  }
View Full Code Here

  protected abstract InvalidRequest validate (URL url, HostProxy proxy,DBConnect dbc, Request request) throws Exception;

  protected InvalidRequest validate (Resource r1, Resource r2, Resource r3, Request request) throws Exception {
    URL url = r1 != null ? ((UrlResource) r1).getUrl(end) : null;
    HostProxy proxy = ((HostProxyResource)r2).getHostProxy();
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc = r3 != null ? ((JDBCResource) r3).getDBConnect() : null;
    return validate(url, proxy, dbc, request);
  }
View Full Code Here

  protected abstract Response process (URL url, HostProxy proxy,DBConnect dbc, Request request) throws Exception;

  protected Response process (Resource r1, Resource r2, Resource r3, Request request) throws Exception {
    URL url = r1 != null ? ((UrlResource) r1).getUrl(end) : null;
    HostProxy proxy = r2 != null ? ((HostProxyResource)r2).getHostProxy() : null;
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc = r3 != null ? ((JDBCResource) r3).getDBConnect() : null;
   
    return process(url, proxy, dbc, request);
  }
View Full Code Here

TOP

Related Classes of pt.opensoft.host.HostProxy

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.