public boolean isPoll()
    {
        boolean isPoll = isEmpty();
        if ( "terminate".equals( document.getRootElement().attributeValue( "type" ) ) )
        { isPoll = false; }
        else if ( "true".equals( document.getRootElement().attributeValue( new QName( "restart", document.getRootElement().getNamespaceForPrefix( "xmpp" ) ) ) ) )
        { isPoll = false; }
        else if ( document.getRootElement().attributeValue( "pause" ) != null )
        { isPoll = false; }

        return isPoll;
    }
Representation of the 'body' element of an HTTP-Bind defined request.

@author Guus der Kinderen, guus.der.kinderen@gmail.com
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpBindBody.java