0
restlet에 액세스하는 데 사용 된 프로토콜을 가져 오는 방법이 있습니까? 예를 들어 HTTPS를 통해 서블릿에 액세스 할 때 약간 다른 동작처럼 구현해야합니다. 이것을 어떻게 확인할 수 있습니까?restlet에서 Jersey 프로토콜 가져 오기
@PUT
@Path("{storage}/{repository}/{path:.*}")
public void upload(@PathParam("storage") String storage,
@PathParam("repository") String repository,
@PathParam("path") String path,
@Context HttpServletRequest request)
throws IOException,
AuthenticationException
{
System.out.println("Using protocol " + request.getRequestURL().toString().split(":")[0]);
}
을 그리고 이것은 트릭을 할 것입니다 :