Package org.one.stone.soup.server.http.routers

Examples of org.one.stone.soup.server.http.routers.HttpRouter


      String serviceAlias = xService.getAttributeValueByName("name");
      String serviceName = xService.getAttributeValueByName("service");
      XmlElement authentication = xService.getElementByName("authentication-server");
     
      XmlElement xServiceDefinition = XappDB.findElement("xpath.model:xapp-server/services/node()[@name=\""+serviceName+"\"]");
      HttpRouter service = buildService( server,name,xServiceDefinition );
     
      if(authentication!=null)
      {
        String address = authentication.getAttributeValueByName("address");
        int port = Integer.parseInt(authentication.getAttributeValueByName("port"));
        String domain = authentication.getAttributeValueByName("domain");
        String subDomain = authentication.getAttributeValueByName("subdomain");
       
        try{
          HttpAuthenticator authenticator = new HttpAuthenticator(server.getFileServer(),address,port,domain,subDomain);
          service.setAuthenticator(authenticator);
        }
        catch(Exception e)
        {
          XappRootApplication.displayException(e);
          XappRootApplication.displayMessage("Server "+name+" not built as HttpAuthenticator failed");
View Full Code Here


    return server;
  }
 
  private HttpRouter buildService(HttpServer server,String name,XmlElement xServiceDefinition)
  {
    HttpRouter router = null;
       
    String type = xServiceDefinition.getName();
   
    router = (HttpRouter)services.get(type+"."+name);
    if(router!=null)
View Full Code Here

TOP

Related Classes of org.one.stone.soup.server.http.routers.HttpRouter

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.