1 18 package org.osgi.service.http; 19 20 import java.io.IOException ; 21 import java.net.URL ; 22 23 import javax.servlet.http.HttpServletRequest ; 24 import javax.servlet.http.HttpServletResponse ; 25 26 42 public interface HttpContext { 43 51 public static final String REMOTE_USER = "org.osgi.service.http.authentication.remote.user"; 52 60 public static final String AUTHENTICATION_TYPE = "org.osgi.service.http.authentication.type"; 61 71 public static final String AUTHORIZATION = "org.osgi.service.useradmin.authorization"; 72 73 130 public boolean handleSecurity(HttpServletRequest request, 131 HttpServletResponse response) throws IOException ; 132 133 151 public URL getResource(String name); 152 153 167 public String getMimeType(String name); 168 } 169 | Popular Tags |