Package org.apache.abdera.protocol.server

Examples of org.apache.abdera.protocol.server.RequestContext


  implements Resolver<Subject> {

  public static final Principal ANONYMOUS = new AnonymousPrincipal();
 
  public Subject resolve(Request request) {
    RequestContext context = (RequestContext) request;
    return resolve(context.getPrincipal());
  }
View Full Code Here


  @Override
  protected void service(
    HttpServletRequest request,
    HttpServletResponse response)
      throws ServletException, IOException {
    RequestContext reqcontext = new HttpServletRequestContext(context, request);
    ItemManager<RequestHandler> manager = context.getRequestHandlerManager();
    log.debug("Processing request");
    RequestHandler handler = manager.get(reqcontext);
    log.debug("Handler - " + handler);
    try {
View Full Code Here

    Pattern p = Pattern.compile(pattern);
    this.patterns.put(p,type);
  }
 
  public Target resolve(Request request) {
    RequestContext context = (RequestContext) request;
    String uri = context.getTargetPath();
    for (Pattern pattern : patterns.keySet()) {
      Matcher matcher = pattern.matcher(uri);
      if (matcher.matches()) {
        TargetType type = patterns.get(pattern);
        return getTarget(type, context, matcher);
View Full Code Here

  private final static Log log = LogFactory.getLog(GVizServlet.class);

  @Override
  protected void service(HttpServletRequest request, HttpServletResponse response)
  throws IOException {
    RequestContext reqcontext =
      new ServletRequestContext(provider, request, getServletContext());
    FilterChain chain = new FilterChain(provider,reqcontext);
    try {
      output(request, response, chain.next(reqcontext));
    } catch (Throwable t) {
View Full Code Here

TOP

Related Classes of org.apache.abdera.protocol.server.RequestContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.