package com.thinkminimo.step

import util.matching.Regex
import javax.servlet.http._

case class RichRequest(r: HttpServletRequest) {
  import RichRequest._

  @deprecated
  def host = r.getServerName

  @deprecated
  def port = Integer.toString(r.getServerPort)

  def referer = r.getHeader("Referer") match {
    case s: String => Some(s)
    case null => None
  }
}


package com.thinkminimo.step

import util.matching.Regex
import javax.servlet.http._

case class RichRequest(r: HttpServletRequest) {
  import RichRequest._

  @deprecated(message = "Use HttpServletRequest.getServerName() instead")
  def host = r.getServerName

  @deprecated(message = "Use HttpServletRequest.getServerPort() instead")
  def port = Integer.toString(r.getServerPort)

  def referer = r.getHeader("Referer") match {
    case s: String => Some(s)
    case null => None
  }
}


Add message to @deprecated annotations.
Add message to @deprecated annotations.
