|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ungoverned.osgi.bundle.httpadmin.util.SimpleContext
This is just a helper - default HttpContext implementation for an OSGi HTTP Service. It does not handle security and by default permits ANY access. It alse returns null as mime type to indicate that default mime types should be used.
Constructor Summary | |
SimpleContext(java.lang.Object base)
Constructs a new simple http context to use with OSGi HTTP Service. |
Method Summary | |
java.lang.String |
getMimeType(java.lang.String resource)
Returns null which is considered to be default mime type |
java.net.URL |
getResource(java.lang.String name)
Reads a resource as URL. |
boolean |
handleSecurity(HttpServletRequest request,
HttpServletResponse response)
This method is resposible for security - e.g http sessions and logins. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleContext(java.lang.Object base)
base
- a reference to the object which is used as base for resources
which are considered to be relative to that object package name (see getResource).Method Detail |
public boolean handleSecurity(HttpServletRequest request, HttpServletResponse response)
public java.lang.String getMimeType(java.lang.String resource)
null
which is considered to be default mime type
public java.net.URL getResource(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |