Skip to content

Instantly share code, notes, and snippets.

@gnufied
Created September 8, 2008 11:53
Show Gist options
  • Save gnufied/9421 to your computer and use it in GitHub Desktop.
Save gnufied/9421 to your computer and use it in GitHub Desktop.
/home/gnufied/eventfax/examples~ scalac -cp ../target/eventfax-1.0.0.jar:../lib/xlightweb-2.0-beta-2.jar:../lib/xSocket-2.1.1.jar:. ConsumeFormPost.scala
ConsumeFormPost.scala:49: error: type mismatch;
found : AccountActivity
required: org.xlightweb.IHttpResponseHandler
val handler: IHttpResponseHandler = new AccountActivity()
^
=== code
class AccountActivity extends IHttpResponseHandler {
def onResponse(response: IHttpResponse) = {
val status = response.getStatus()
println("And status is :" + status)
}
def onException(ioe: IOException) = {
println("Some IO Error")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment