Multi-protocol device handler?

I am building a garage controller with a esp8266 wifi device that drives 2 relays and reads 4 sensors. I’ve got it working using a single device handler that I’ve coded from lot us of different examples on this forum.

I found a zwave contact sensor that would be ideal for the 4 door sensors that I could use instead of the hard wired kind that I was planning. This would also reduce wiring complexity quite a bit.

Question can a device handler be coded to accept both wifi requests from the local LAN AND zwave requests in the same handler?