public ServerNotificationRegistration readServerNotificationRegistration ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { JSONObject json = parseObject ( in ) ; ServerNotificationRegistration ret = new ServerNotificationRegistration ( ) ; String name = readStringInternal ( json . get ( N_OPERATION ) ) ; ret . operation = name != null ? Operation . valueOf ( name ) : null ; ret . objectName = readObjectName ( json . get ( N_OBJECTNAME ) ) ; ret . listener = readObjectName ( json . get ( N_LISTENER ) ) ; ret . filter = readNotificationFilterInternal ( json . get ( N_FILTER ) , true ) ; ret . handback = readPOJOInternal ( json . get ( N_HANDBACK ) ) ; ret . filterID = readIntInternal ( json . get ( N_FILTERID ) ) ; ret . handbackID = readIntInternal ( json . get ( N_HANDBACKID ) ) ; return ret ; }
Decode a JSON document to retrieve a ServerNotificationRegistration instance .