Package org.xmlBlaster.util

Examples of org.xmlBlaster.util.XbUri


         throw new XmlBlasterException(glob,
               ErrorCode.RESOURCE_CONFIGURATION_ADDRESS, "SmtpClient",
               "Please configure a mail.smtp.url to access the SMTP MTA, for example 'mail.smtp.url=smtp://joe:password@smtp.xmlBlaster.org:25'");
      }
      try {
         this.xbUri = new XbUri(uri.trim());
      } catch (URISyntaxException e) {
         throw new XmlBlasterException(glob,
               ErrorCode.RESOURCE_CONFIGURATION_ADDRESS, "SmtpClient",
               "Your URI '" + uri +
               "' is illegal", e);
View Full Code Here


        return this.xbUri.toString();
   }
  
   public void setSmtpUrl(String uri) {
      try {
         this.xbUri = new XbUri(uri);
      } catch (URISyntaxException e) {
         throw new IllegalArgumentException(
               "Your URI '" + uri +
               "' is illegal: " + e.toString());
      }
View Full Code Here

                  "pop3://" + System.getProperty("user.name") + ":" + System.getProperty("user.name") + "@127.0.0.1:110/INBOX "
                  //"pop3://xmlBlaster:xmlBlaster@localhost:110/INBOX ",
                  ), null, pluginConfig);

      try {
         this.xbUri = new XbUri(this.pop3Url);
         if (this.xbUri.getPassword() != null) {
            this.props.setProperty("mail.smtp.auth", "true"); //Indicate that authentication is required at pop3 server
            this.authentication = new PasswordAuthentication(this.xbUri.getUser(), this.xbUri.getPassword());
         }
      } catch (URISyntaxException e) {
View Full Code Here

TOP

Related Classes of org.xmlBlaster.util.XbUri

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.