Examples of WebCredentials


Examples of microsoft.exchange.webservices.data.WebCredentials

  private final ExchangeService service;

  public ExchangeSourceImpl(final ExchangeSettings settings) throws Exception {
    LOG.info("Connecting to Exchange (" + settings.getExchangeHost() + ") as " + settings.getExchangeUsername() + "...");

    final ExchangeCredentials credentials = new WebCredentials(
        settings.getExchangeUsername(),
        settings.getExchangePassword(),
        settings.getExchangeDomain());
    service = new ExchangeService(ExchangeVersion.valueOf(settings.getExchangeVersion()));
    service.setCredentials(credentials);
View Full Code Here

Examples of org.serviceconnector.web.WebCredentials

    WebSession webSession = request.getSession(true);
    if (webSession == null) {
      // check if has been created before
      throw new LoginException("internal error, no session");
    }
    webSession.setCredentials(new WebCredentials(contextUserid, contextPassword));
    webSession.setUserAgent(request.getHeader("User-Agent"));
    webSession.setRemoteHost(request.getRemoteHost());
    webSession.setRemotePort(request.getRemotePort());
    webSession.setHost(request.getHost());
    webSession.setPort(request.getPort());
View Full Code Here

Examples of org.serviceconnector.web.WebCredentials

    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    ListenerConfiguration respConfig = responder.getListenerConfig();
    String contextUserid = respConfig.getUsername();
    String contextPassword = respConfig.getPassword();
    WebContext.setSCWebCredentials(new WebCredentials(contextUserid, contextPassword));

    HttpRequest httpRequest = (HttpRequest) event.getMessage();
    HttpResponse httpResponse = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
    IWebRequest webRequest = new NettyWebRequest(httpRequest, localAddress, remoteAddress);
    IWebResponse webResponse = new NettyWebResponse(httpResponse);
View Full Code Here

Examples of org.serviceconnector.web.WebCredentials

    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    ListenerConfiguration respConfig = responder.getListenerConfig();
    String contextUserid = respConfig.getUsername();
    String contextPassword = respConfig.getPassword();
    WebContext.setSCWebCredentials(new WebCredentials(contextUserid, contextPassword));

    HttpRequest httpRequest = (HttpRequest) event.getMessage();
    HttpResponse httpResponse = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
    IWebRequest webRequest = new NettyWebRequest(httpRequest, localAddress, remoteAddress);
    IWebResponse webResponse = new NettyWebResponse(httpResponse);
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.