Package org.fusesource.restygwt.server.complex

Examples of org.fusesource.restygwt.server.complex.ObjectEncoderDecoderServlet$PropertiesImpl


        host
      );
  }

  public static Properties toS3(String accessKeyId, String awsSecretKey, String defaultLocation, String host) {
    PropertiesImpl s3 = new PropertiesImpl();
    if(!StringUtil.isEmpty(accessKeyId))s3.setAccessKeyId(accessKeyId);
    if(!StringUtil.isEmpty(awsSecretKey))s3.setSecretAccessKey(awsSecretKey);
    if(!StringUtil.isEmpty(defaultLocation))s3.setDefaultLocation(defaultLocation);
    if(!StringUtil.isEmpty(host))s3.setHost(host);
    return s3;
  }
View Full Code Here


    PageContext pc = ThreadLocalPageContext.get();
    Properties prop=null;
    if(pc!=null){
      prop=pc.getApplicationContext().getS3();
    }
    if(prop==null) prop=new PropertiesImpl();
   
    int defaultLocation = prop.getDefaultLocation();
    storage.setValue(defaultLocation);
    String accessKeyId = prop.getAccessKeyId();
    String secretAccessKey = prop.getSecretAccessKey();
View Full Code Here

  /**
   * @return the s3
   */
  public Properties getS3() {
    if(s3==null) s3=new PropertiesImpl();
    return s3;
  }
View Full Code Here

TOP

Related Classes of org.fusesource.restygwt.server.complex.ObjectEncoderDecoderServlet$PropertiesImpl

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.