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
  }
}


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
  }
}


--- 
+++ 
@@ -6,10 +6,10 @@
 case class RichRequest(r: HttpServletRequest) {
   import RichRequest._
 
-  @deprecated
+  @deprecated(message = "Use HttpServletRequest.getServerName() instead")
   def host = r.getServerName
 
-  @deprecated
+  @deprecated(message = "Use HttpServletRequest.getServerPort() instead")
   def port = Integer.toString(r.getServerPort)
 
   def referer = r.getHeader("Referer") match {
Add message to @deprecated annotations.
