Package org.serviceconnector.web

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


    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

    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

Related Classes of org.serviceconnector.web.WebCredentials

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.