Created
September 8, 2008 11:53
-
-
Save gnufied/9421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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