Guest User

Untitled

a guest
Feb 6th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. public String getURL()
  2. {
  3. String url = "";
  4. try{
  5. URI uri = new URI(this.emailServer.toString());
  6.  
  7. url = "imaps://"+uri.getHost()+"?username="+this.username+"&password=RAW("+this.password+")&folderName="+this.getMailBox()+"&copyTo="+this.getMailBox()";
  8. } catch (Exception ex){
  9. ex.printStackTrace();
  10. }
  11. return url;
  12. }
  13.  
  14. public String getURL(){
  15.  
  16. String fromURL = "";
  17.  
  18. fromURL = "aws-sqs://" + getQueueName() + "?accessKey=" + getS3AccessKey() + "&secretKey=RAW(" + getS3SecretKey() + ")&region=" + getQueueRegion() + "&queueOwnerAWSAccountId=" + getS3SQSAWSClientID();
  19.  
  20. return fromURL;
  21. }
Add Comment
Please, Sign In to add comment