Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.TimedRefreshInfo


        return RefreshContentProcessor.REFRESH_TYPE;
    }

    // javadoc inherited
    public Object getResult() throws XDIMEException {
        TimedRefreshInfo result = null;
        try {
            final String contents = super.getResult().toString();
            result= new TimedRefreshInfo(contents);
        } catch (NumberFormatException e) {
            // If string didn't parse to long property, throw an exception
            // reusing existing localised message, saying that Period was
            // expected, but String was encountered.
            throw new XDIMEException(
View Full Code Here


    public void process(Object content, XDIMEContextInternal context,
                        String id, String propertyName) throws XDIMEException {
        super.process(content, context, id, propertyName);
        MarinerPageContext ctx = ContextInternals.getMarinerPageContext(
            context.getInitialRequestContext());
        TimedRefreshInfo tri = (TimedRefreshInfo) content;
        if (null != tri) {
            try {
                ctx.getProtocol().writeTimedRefresh(tri);
            } catch (ProtocolException e) {
                throw new XDIMEException(e);
View Full Code Here

        String name = pattributes.getName();

        if (null != name) {
            if (name.equals("mcs-" + TimedRefreshInfo.NAME)) {
                try {
                    TimedRefreshInfo tri =
                            new TimedRefreshInfo(attributes.getContent());
                    protocol.writeTimedRefresh(tri);
                } catch (NumberFormatException nfe) {
                    throw new PAPIException(EXCEPTION_LOCALIZER.format(
                            "invalid-attribute", new Object[]{
                            "mcs-" + TimedRefreshInfo.NAME,
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.TimedRefreshInfo

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.