Package org.jboss.ws.core.server

Examples of org.jboss.ws.core.server.ServletRequestContext


      // Set servlet specific properties
      HttpServletResponse httpResponse = null;
      ServletHeaderSource headerSource = null;
      if (invContext instanceof ServletRequestContext)
      {
         ServletRequestContext reqContext = (ServletRequestContext)invContext;

         ServletContext servletContext = reqContext.getServletContext();
         HttpServletRequest httpRequest = reqContext.getHttpServletRequest();
         httpResponse = reqContext.getHttpServletResponse();
         headerSource = new ServletHeaderSource(httpRequest, httpResponse);

         if (type == EndpointMetaData.Type.JAXRPC)
         {
            msgContext.put(MessageContextJAXRPC.SERVLET_CONTEXT, servletContext);
View Full Code Here


   {
      ServerEndpointMetaData epMetaData = endpoint.getAttachment(ServerEndpointMetaData.class);
      if (epMetaData == null)
         throw new IllegalStateException("Cannot obtain endpoint meta data");

      ServletRequestContext reqContext = (ServletRequestContext)context;
      HttpServletRequest req = reqContext.getHttpServletRequest();

      // For the base document the resourcePath should be null
      String resPath = (String)req.getParameter("resource");
      URL reqURL = new URL(req.getRequestURL().toString());
View Full Code Here

      {
         res.setContentType("text/xml");
         ServletOutputStream out = res.getOutputStream();
         try
         {
            ServletRequestContext reqContext = new ServletRequestContext(context, req, res);
            handleWSDLRequest(endpoint, out, reqContext);
         }
         catch (Exception ex)
         {
            handleException(ex);
View Full Code Here

      // Set the thread context class loader
      ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader();
      Thread.currentThread().setContextClassLoader(classLoader);
      try
      {
         ServletRequestContext reqContext = new ServletRequestContext(context, req, res);
         handleRequest(endpoint, in, out, reqContext);
      }
      catch (Exception ex)
      {
         handleException(ex);
View Full Code Here

      // Set servlet specific properties
      HttpServletResponse httpResponse = null;
      ServletHeaderSource headerSource = null;
      if (invContext instanceof ServletRequestContext)
      {
         ServletRequestContext reqContext = (ServletRequestContext)invContext;
        
         ServletContext servletContext = reqContext.getServletContext();
         HttpServletRequest httpRequest = reqContext.getHttpServletRequest();
         httpResponse = reqContext.getHttpServletResponse();
         headerSource = new ServletHeaderSource(httpRequest, httpResponse);
        
         if (type == EndpointMetaData.Type.JAXRPC)
         {
            msgContext.put(MessageContextJAXRPC.SERVLET_CONTEXT, servletContext);
View Full Code Here

   {
      ServerEndpointMetaData epMetaData = endpoint.getAttachment(ServerEndpointMetaData.class);
      if (epMetaData == null)
         throw new IllegalStateException("Cannot obtain endpoint meta data");

      ServletRequestContext reqContext = (ServletRequestContext)context;
      HttpServletRequest req = reqContext.getHttpServletRequest();
     
      // For the base document the resourcePath should be null
      String resPath = (String)req.getParameter("resource");
      URL reqURL = new URL(req.getRequestURL().toString());
View Full Code Here

/*     */     {
/* 140 */       res.setContentType("text/xml");
/* 141 */       ServletOutputStream out = res.getOutputStream();
/*     */       try
/*     */       {
/* 144 */         ServletRequestContext reqContext = new ServletRequestContext(context, req, res);
/* 145 */         handleWSDLRequest(endpoint, out, reqContext);
/*     */       }
/*     */       catch (Exception ioex)
/*     */       {
/* 149 */         handleException(ex);
View Full Code Here

/*     */
/* 185 */     ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader();
/* 186 */     Thread.currentThread().setContextClassLoader(classLoader);
/*     */     try
/*     */     {
/* 189 */       ServletRequestContext reqContext = new ServletRequestContext(context, req, res);
/* 190 */       handleRequest(endpoint, in, out, reqContext);
/*     */     }
/*     */     catch (Exception ioex)
/*     */     {
/* 194 */       handleException(ex);
View Full Code Here

/*     */
/* 238 */     HttpServletResponse httpResponse = null;
/* 239 */     ServletHeaderSource headerSource = null;
/* 240 */     if ((invContext instanceof ServletRequestContext))
/*     */     {
/* 242 */       ServletRequestContext reqContext = (ServletRequestContext)invContext;
/*     */
/* 244 */       ServletContext servletContext = reqContext.getServletContext();
/* 245 */       HttpServletRequest httpRequest = reqContext.getHttpServletRequest();
/* 246 */       httpResponse = reqContext.getHttpServletResponse();
/* 247 */       headerSource = new ServletHeaderSource(httpRequest, httpResponse);
/*     */
/* 249 */       if (type == EndpointMetaData.Type.JAXRPC)
/*     */       {
/* 251 */         msgContext.put("javax.xml.ws.servlet.context", servletContext);
View Full Code Here

/*     */
/* 524 */     ServerEndpointMetaData epMetaData = (ServerEndpointMetaData)endpoint.getAttachment(ServerEndpointMetaData.class);
/* 525 */     if (epMetaData == null) {
/* 526 */       throw new IllegalStateException("Cannot obtain endpoint meta data");
/*     */     }
/* 528 */     ServletRequestContext reqContext = (ServletRequestContext)context;
/* 529 */     HttpServletRequest req = reqContext.getHttpServletRequest();
/*     */     try
/*     */     {
/* 534 */       String resPath = req.getParameter("resource");
/* 535 */       URL reqURL = new URL(req.getRequestURL().toString());
/*     */
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.server.ServletRequestContext

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.