Package com.volantis.mcs.protocols.response.attributes

Examples of com.volantis.mcs.protocols.response.attributes.ResponseTimerAttributes


* Implementation of AJAX resposne for Timer widget. 
*/
public class ResponseTimerElement extends ResponseElement {
    public ResponseTimerElement(XDIMEContextInternal context) {
        super(ResponseElements.TIMER, context);
        protocolAttributes = new ResponseTimerAttributes();
    }
View Full Code Here


    // Javadoc inherited
    public void callCloseOnProtocol(XDIMEContextInternal context) {
        MarinerPageContext pageContext = getPageContext(context);
        OutputBuffer buffer = pageContext.getCurrentOutputBuffer();
       
        ResponseTimerAttributes responseTimerAttributes = (ResponseTimerAttributes) protocolAttributes;
       
        buffer.writeText("{start: "+responseTimerAttributes.getStartTime());
        buffer.writeText(",stop: "+responseTimerAttributes.getStopTime());
        buffer.writeText("} ");
    }
View Full Code Here

    }

    protected void initialiseElementSpecificAttributes(XDIMEContextInternal context, XDIMEAttributes attributes)
        throws XDIMEException {
       
        ResponseTimerAttributes responseTimerAttributes = (ResponseTimerAttributes) protocolAttributes;
        /**
         * start-time and stop-time attributes
         */
        responseTimerAttributes.setStartTime(new Integer(attributes.getValue("", "start-time")));
        responseTimerAttributes.setStopTime(new Integer(attributes.getValue("", "stop-time")));
        super.initialiseElementSpecificAttributes(context, attributes);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.response.attributes.ResponseTimerAttributes

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.