A man has been jailed for more than two years after a Basingstoke woman was subjected to a brutal assault while on holiday in Weymouth.