336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
1. RESTLET 설치
http://restlet.org/download/current#release=stable&edition=jse&distribution=zip
2. RESTLET 라이브러리 설정
해당 프로젝트 - [우클릭] - [Properties] - [JAVA Build Path]
[Libraries] - [Add External JARs] - restlet 압출 파일해제한 폴더로 이동
org.restlet.jar 파일 선택
3. 예제 코드
import org.restlet.Server;
import org.restlet.data.Protocol;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
public class RESTletHelloWorld extends ServerResource {
public static void main(String[] args) throws Exception {
new Server(Protocol.HTTP, 8182,
RESTletHelloWorld.class).start();
}
@Get
public String toString() {
return "Hello, RESTlet World!123";
}
}
4. 브라우저를 이용하여
http://localhost:8182 접속
'Programming > JAVA,JSP' 카테고리의 다른 글
| restlet download restlet-jse-2.1.2 (0) | 2013.04.27 |
|---|---|
| RESTLET Point (0) | 2013.04.21 |
| JAVA 로 Word 문서 만들기 (0) | 2013.03.29 |
| JAVA 선택정렬 (0) | 2013.03.03 |
| JAVA 삽입 정렬 (0) | 2013.03.03 |


restlet-jse-2.1.2.vol1.egg