doorHandler.getNextObstacle(Entity or Position); //Returns an RS2Object
doorHandler.getObstacles(); //List of RS2Objects
Take a look at the api, it's all there !
http://osbot.org/api/org/osbot/rs07/api/DoorHandler.html#getNextObstacle(org.osbot.rs07.api.model.Entity)