Examples of SecureRemoteInvocationFactory


Examples of org.apache.shiro.spring.remoting.SecureRemoteInvocationFactory

    } else {
      HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean();
      httpInvokerProxyFactoryBean.setServiceUrl(serverAdress + "copperMonitoringService");
      httpInvokerProxyFactoryBean.setServiceInterface(CopperMonitoringService.class);
      RemoteInvocationFactory remoteInvocationFactory = secureConnect ?
          new SecureRemoteInvocationFactory(sessionId) : new DefaultRemoteInvocationFactory();
      httpInvokerProxyFactoryBean.setRemoteInvocationFactory(remoteInvocationFactory);
      httpInvokerProxyFactoryBean.setHttpInvokerRequestExecutor(httpInvokerRequestExecutor);
      httpInvokerProxyFactoryBean.afterPropertiesSet();
      final CopperMonitoringService copperMonitoringService = (CopperMonitoringService) httpInvokerProxyFactoryBean.getObject();
View Full Code Here

Examples of org.apache.shiro.spring.remoting.SecureRemoteInvocationFactory

 
    {
      final HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean();
      httpInvokerProxyFactoryBean.setServiceInterface(CopperMonitoringService.class);
      httpInvokerProxyFactoryBean.setServiceUrl(COPPER_MONITORING_SERVICE);
      httpInvokerProxyFactoryBean.setRemoteInvocationFactory(new SecureRemoteInvocationFactory(sessionId));
      httpInvokerProxyFactoryBean.setHttpInvokerRequestExecutor(new CommonsHttpInvokerRequestExecutor());
      httpInvokerProxyFactoryBean.afterPropertiesSet();
     
     
      CopperMonitoringService copperMonitorService = (CopperMonitoringService)httpInvokerProxyFactoryBean.getObject();
View Full Code Here

Examples of org.apache.shiro.spring.remoting.SecureRemoteInvocationFactory

 
    {
      final HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean();
      httpInvokerProxyFactoryBean.setServiceInterface(CopperMonitoringService.class);
      httpInvokerProxyFactoryBean.setServiceUrl(COPPER_MONITORING_SERVICE);
      httpInvokerProxyFactoryBean.setRemoteInvocationFactory(new SecureRemoteInvocationFactory(sessionId));
      httpInvokerProxyFactoryBean.setHttpInvokerRequestExecutor(new CommonsHttpInvokerRequestExecutor());
      httpInvokerProxyFactoryBean.afterPropertiesSet();
     
     
      CopperMonitoringService copperMonitorService = (CopperMonitoringService)httpInvokerProxyFactoryBean.getObject();
View Full Code Here

Examples of org.apache.shiro.spring.remoting.SecureRemoteInvocationFactory

  @Test(expected=RemoteAccessException.class)
  public void test_without_user() throws RemoteException{
    HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean();
    httpInvokerProxyFactoryBean.setServiceInterface(CopperMonitoringService.class);
    httpInvokerProxyFactoryBean.setServiceUrl(COPPER_MONITORING_SERVICE);;
    httpInvokerProxyFactoryBean.setRemoteInvocationFactory(new SecureRemoteInvocationFactory("dgfdgdg"));
    httpInvokerProxyFactoryBean.setHttpInvokerRequestExecutor(new CommonsHttpInvokerRequestExecutor());
    httpInvokerProxyFactoryBean.afterPropertiesSet();
     
    CopperMonitoringService copperMonitorService = (CopperMonitoringService)httpInvokerProxyFactoryBean.getObject();
    assertNotNull(copperMonitorService);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.