Package org.apache.openejb.server.httpd

Examples of org.apache.openejb.server.httpd.HttpRequest


    public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        if (listener == null) {
            throw new ServletException("RESTServiceContainer has not been set");
        }

        HttpRequest httpRequest = new ServletRequestAdapter(req, res, servletConfig.getServletContext());
        HttpResponse httpResponse = new ServletResponseAdapter(res);

        try {
            listener.onMessage(httpRequest, httpResponse);
        } catch (IOException e) {
View Full Code Here


        ServletEndpointContext context = getContext();
        endpointContext.set(new InvocationContext((HttpServletRequest) req));
        try {
            res.setContentType("text/xml");
            HttpRequest httpRequest = new ServletRequestAdapter((HttpServletRequest) req, (HttpServletResponse) res, config.getServletContext());
            HttpResponse httpResponse = new ServletResponseAdapter((HttpServletResponse) res);

            if (pojo != null) {
                req.setAttribute(WsConstants.POJO_INSTANCE, pojo);
            }
View Full Code Here

        final ServletEndpointContext context = getContext();
        endpointContext.set(new InvocationContext((HttpServletRequest) req));
        try {
            res.setContentType("text/xml");
            final HttpRequest httpRequest = new ServletRequestAdapter((HttpServletRequest) req, (HttpServletResponse) res, config.getServletContext());
            final HttpResponse httpResponse = new ServletResponseAdapter((HttpServletResponse) res);

            if (pojo != null) {
                req.setAttribute(WsConstants.POJO_INSTANCE, pojo);
            }
View Full Code Here

    public void service(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
        if (listener == null) {
            throw new ServletException("RESTServiceContainer has not been set");
        }

        final HttpRequest httpRequest = new ServletRequestAdapter(req, res, servletConfig.getServletContext());
        final HttpResponse httpResponse = new ServletResponseAdapter(res);

        try {
            listener.onMessage(httpRequest, httpResponse);
        } catch (final IOException e) {
View Full Code Here

import javax.xml.rpc.holders.IntHolder;
import java.lang.reflect.Method;

public class PojoProvider extends RPCProvider {
    public Object getServiceObject(final MessageContext msgContext, final Handler service, final String clsName, final IntHolder scopeHolder) throws Exception {
        final HttpRequest request = (HttpRequest) msgContext.getProperty(AxisWsContainer.REQUEST);
        return request.getAttribute(WsConstants.POJO_INSTANCE);
    }
View Full Code Here

       
        ServletEndpointContext context = getContext();
        endpointContext.set(new InvocationContext((HttpServletRequest) req));
        try {
            res.setContentType("text/xml");
            HttpRequest httpRequest = new ServletRequestAdapter((HttpServletRequest) req, (HttpServletResponse) res, config.getServletContext());
            HttpResponse httpResponse = new ServletResponseAdapter((HttpServletResponse) res);

            if (pojo != null) {
                req.setAttribute(WsConstants.POJO_INSTANCE, pojo);
            }
View Full Code Here

import javax.xml.rpc.holders.IntHolder;
import java.lang.reflect.Method;

public class PojoProvider extends RPCProvider {
    public Object getServiceObject(MessageContext msgContext, Handler service, String clsName, IntHolder scopeHolder) throws Exception {
        HttpRequest request = (HttpRequest) msgContext.getProperty(AxisWsContainer.REQUEST);
        return request.getAttribute(WsConstants.POJO_INSTANCE);
    }
View Full Code Here

        ServletEndpointContext context = getContext();
        endpointContext.set(new InvocationContext((HttpServletRequest) req));
        try {
            res.setContentType("text/xml");
            HttpRequest httpRequest = new ServletRequestAdapter((HttpServletRequest) req, (HttpServletResponse) res, config.getServletContext());
            HttpResponse httpResponse = new ServletResponseAdapter((HttpServletResponse) res);

            if (pojo != null) {
                req.setAttribute(WsConstants.POJO_INSTANCE, pojo);
            }
View Full Code Here

    public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        if (listener == null) {
            throw new ServletException("RESTServiceContainer has not been set");
        }

        HttpRequest httpRequest = new ServletRequestAdapter(req, res, servletConfig.getServletContext());
        HttpResponse httpResponse = new ServletResponseAdapter(res);

        try {
            listener.onMessage(httpRequest, httpResponse);
        } catch (IOException | ServletException e) {
View Full Code Here

    public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        if (listener == null) {
            throw new ServletException("RESTServiceContainer has not been set");
        }

        HttpRequest httpRequest = new ServletRequestAdapter(req, res, servletConfig.getServletContext());
        HttpResponse httpResponse = new ServletResponseAdapter(res);

        try {
            listener.onMessage(httpRequest, httpResponse);
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.apache.openejb.server.httpd.HttpRequest

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.