Package com.sun.enterprise.registration.RegistrationService

Examples of com.sun.enterprise.registration.RegistrationService.RegistrationStatus


     */
    public RegistrationStatus getRegistrationStatus() {
        NodeList nodes = document.getElementsByTagName(ServiceTagImpl.SERVICE_TAG);
        for(int i = 0 ; i < nodes.getLength();i++) {
            Element elem = (Element)nodes.item(i);
            RegistrationStatus rs =
                    RegistrationStatus.valueOf(getSubElementValue(elem, ServiceTagImpl.REGISTRATION_STATUS));
            if (rs.equals(RegistrationStatus.REGISTERED))
                return rs;
        }
        return RegistrationStatus.NOT_REGISTERED;
    }
View Full Code Here


        }
        handlerCtx.setOutputValue("value", true);
    }

    private static RegistrationStatus getRegistrationStatus() {
        RegistrationStatus regStatus = RegistrationStatus.NOT_REGISTERED;
        try {
            RegistrationService regService = getRegistrationService();
            if (regService != null) {
                regStatus = regService.getRegistrationStatus();
//                System.out.println("======== DEBUG ==== getRegistrationStatus returns " + regStatus);
View Full Code Here

    @Handler(id="setRegistrationNodeText")
    public static void setRegistrationNodeText(HandlerContext handlerCtx) {

        try {
            RegistrationService regService = getRegistrationService();
            RegistrationStatus status = regService.getRegistrationStatus();
            setNodeText(handlerCtx, (status == RegistrationStatus.REGISTERED));
        } catch(Exception ex) {
      // FIXME: Log trace instead
            ex.printStackTrace();
            setNodeText(handlerCtx, false);
View Full Code Here

     */
    public RegistrationStatus getRegistrationStatus() {
        NodeList nodes = document.getElementsByTagName(ServiceTag.SERVICE_TAG);
        for(int i = 0 ; i < nodes.getLength();i++) {
            Element elem = (Element)nodes.item(i);
            RegistrationStatus rs =
                    RegistrationStatus.valueOf(getSubElementValue(elem, ServiceTag.REGISTRATION_STATUS));
            if (rs.equals(RegistrationStatus.REGISTERED))
                return rs;
        }
        return RegistrationStatus.NOT_REGISTERED;
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.registration.RegistrationService.RegistrationStatus

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.