public State getState() {
        return state;
    }
Returns the current subscription state. Subscriptions with status of pending should be
authorized by a node owner.

@return the current subscription state.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/NodeSubscription.java