01: package org.objectweb.celtix.bus.transports.http;
02:
03: import org.mortbay.http.HttpContext;
04: import org.objectweb.celtix.endpoints.ContextInspector;
05:
06: public class JettyContextInspector implements ContextInspector {
07:
08: public String getAddress(Object serverContext) {
09: if (serverContext.getClass()
10: .isAssignableFrom(HttpContext.class)) {
11: return ((HttpContext) serverContext).getContextPath();
12: } else {
13: return null;
14: }
15: }
16: }
|