Package org.apache.stratos.cloud.controller.util

Examples of org.apache.stratos.cloud.controller.util.PortMapping


                                                                CloudControllerConstants.PORT_ATTR));
              String proxyPort =
                                 httpElt.getAttributeValue(new QName(
                                                                     CloudControllerConstants.PROXY_PORT_ATTR));

              PortMapping mapping =
                                    new PortMapping(
                                                    CloudControllerConstants.HTTP_ELEMENT,
                                                    port, proxyPort);

              aCartridge.addPortMapping(mapping);
            }

            for (Iterator<?> iterator =
                                        portMappingElt.getChildrenWithName(new QName(
                                                                                     CloudControllerConstants.HTTPS_ELEMENT)); iterator.hasNext();) {
              OMElement httpsElt = (OMElement) iterator.next();

              String port =
                            httpsElt.getAttributeValue(new QName(
                                                                 CloudControllerConstants.PORT_ATTR));
              String proxyPort =
                                 httpsElt.getAttributeValue(new QName(
                                                                      CloudControllerConstants.PROXY_PORT_ATTR));

              PortMapping mapping =
                                    new PortMapping(
                                                    CloudControllerConstants.HTTPS_ELEMENT,
                                                    port, proxyPort);

              aCartridge.addPortMapping(mapping);
            }
View Full Code Here

TOP

Related Classes of org.apache.stratos.cloud.controller.util.PortMapping

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.