All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.xml.ws.transport.httpspi.servlet.EndpointHttpContext Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
/*
 * Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0, which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package com.sun.xml.ws.transport.httpspi.servlet;

import jakarta.xml.ws.spi.http.HttpContext;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.util.Set;
import java.io.IOException;

/**
 * @author Jitendra Kotamraju
*/
public final class EndpointHttpContext extends HttpContext {
    private final String urlPattern;

    public EndpointHttpContext(String urlPattern) {
        this.urlPattern = urlPattern;
    }

    void handle(ServletContext context, HttpServletRequest request, HttpServletResponse response) throws IOException {
        EndpointHttpExchange exchange = new EndpointHttpExchange(request,response,context, this);
        handler.handle(exchange);
    }

    @Override
    public String getPath() {
        return urlPattern;
    }

    @Override
    public Object getAttribute(String name) {
        return null;
    }

    @Override
    public Set getAttributeNames() {
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy