This file contains hidden or 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
hello ej |
This file contains hidden or 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
HTTP Request/Response | |
https://docs.google.com/file/d/0B_iYaUmfEuC9c0pNOU5QQk9jLTg/edit?usp=sharing | |
From Desktop to Web Java | |
https://docs.google.com/file/d/0B_iYaUmfEuC9VzBqTmZkc2ptckk/edit?usp=sharing | |
Spark | |
https://docs.google.com/file/d/0B_iYaUmfEuC9UGZxTVo4WDQySzQ/edit?usp=sharing |
This file contains hidden or 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
Requirement: | |
When browser calls for localhost:4567/devconph | |
Logo of DevCon should appear | |
Logo of DevCon should be retrieved via: | |
http://graph.facebook.com/devconph | |
You can use | |
http://beders.github.io/Resty/Resty/Overview.html |
This file contains hidden or 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
Installing Glassfish Plugin to Eclipse | |
https://docs.google.com/file/d/0B_iYaUmfEuC9dllfYVZOczZzUHc/edit?usp=sharing | |
Running JerseyDemo on Glassfish Server | |
https://docs.google.com/file/d/0B_iYaUmfEuC9NXg4aXp3UV94bGM/edit?usp=sharing |
This file contains hidden or 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
<form action="http://localhost:4567/hello" method="post"> | |
<input type="text" name="test" /> | |
</form> |
This file contains hidden or 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
get(new Route("/hello/withparams/:name") { | |
@Override | |
public Object handle(Request request, Response response) { | |
return "Hello " + request.params(":name"); | |
} | |
}); |
This file contains hidden or 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
- Do an HTTP POST request to create a gist: | |
curl -X POST -d '{"description":"the description for this gist","public":true,"files":{"DevCon Java Camp.txt":{"content":"Hello POST request"}}}' https://api.github.com/gists | |
- Access the gist you created by doing an HTTP GET request: | |
curl -X GET https://api.github.com/gists/5778798 | |
- You can also view the note you created in Github: |
This file contains hidden or 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
curl -v http://google.com/ |
This file contains hidden or 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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class ReadConsoleSystem { | |
public static void main(String[] args) { | |
System.out.println("Enter something here : "); | |
try{ |