What does SMS mean in the name of the German naval ship SMS Hagen?

Seiner Majestät Schiff (English: His Majesty's Ship)