Package org.jboss.remoting.marshal

Examples of org.jboss.remoting.marshal.Marshaller


         {
            serializationType = serializationTypeParam;
         }
      }

      Marshaller marshaller = null;
      UnMarshaller unmarshaller = null;
      int tempTimeout = -1;
      int savedTimeout = getTimeout();
     
      if (metadata != null)
View Full Code Here


         callProps.put(StubExt.PROPERTY_CHUNKED_ENCODING_SIZE, "0");
      }

      // setup remoting client           
      Map<String, Object> metadata = createRemotingMetaData(reqMessage, callProps);
      Marshaller marshaller = getMarshaller();
      UnMarshaller unmarshaller = getUnmarshaller();
      InvokerLocator locator = null;
      try
      {
         // Get the invoker from Remoting for a given endpoint address
View Full Code Here

            {
               responseContentType = responseObject == null ? req.getContentType() : WebUtil.getContentType(responseObject);
            }
            res.setContentType(responseContentType);
           
            Marshaller marshaller = getMarshaller();
            if (marshaller instanceof VersionedMarshaller)
               ((VersionedMarshaller) marshaller).write(responseObject, response.getOutputStream(), version);
            else
               marshaller.write(responseObject, response.getOutputStream());
            return;
         }
         default:
         {
            throw new IOException("Can not send response due to version (" + version + ") not being supported.  Supported versions: " + Version.VERSION_1 + ", " + Version.VERSION_2 + ", " + Version.VERSION_2_2);
View Full Code Here

         {
            serializationType = serializationTypeParam;
         }
      }

      Marshaller marshaller = null;
      UnMarshaller unmarshaller = null;
      int tempTimeout = -1;
      int savedTimeout = getTimeout();
     
      if (metadata != null)
View Full Code Here

   }

   public Marshaller getMarshaller()
   {
      ClassLoader classLoader = SecurityUtility.getClassLoader(WebServerInvoker.class);
      Marshaller marshaller = MarshalFactory.getMarshaller(getLocator(), classLoader);
      if(marshaller == null)
      {
         marshaller = MarshalFactory.getMarshaller(getDataType(), getSerializationType());
      }
      return marshaller;
View Full Code Here

      int invokeCount = 0;

      if (trace) { log.trace(this + "(" + (++invokeCount) + ") invoking " + invocationReq); }

      // Set up marshaller and unmarshaller.
      Marshaller marshaller = null;
      UnMarshaller unmarshaller = null;
      RemotingClassLoader rcl = null;
      synchronized (MicroRemoteClientInvoker.class)
      {
         marshaller = getMarshaller();
View Full Code Here

/*  60 */     Object returnValue = null;
/*  61 */     int invokeCount = 0;
/*     */
/*  63 */     if (this.trace) { invokeCount++; log.trace(this + "(" + invokeCount + ") invoking " + invocationReq);
/*     */     }
/*  65 */     Marshaller marshaller = getMarshaller();
/*  66 */     UnMarshaller unmarshaller = getUnMarshaller();
/*     */
/*  68 */     if (marshaller == null)
/*     */     {
/*  71 */       marshaller = MarshalFactory.getMarshaller(getLocator(), getClassLoader());
View Full Code Here

/*     */
/* 683 */           dataOutput.write("\r\n\r\n".getBytes());
/*     */
/* 685 */           if ((methodType != null) && (!methodType.equals("HEAD")))
/*     */           {
/* 688 */             Marshaller marshaller = getMarshaller();
/* 689 */             marshaller.write(response, dataOutput);
/*     */           }
/*     */
/*     */         }
/*     */
/*     */       }
View Full Code Here

         callProps.put(StubExt.PROPERTY_CHUNKED_ENCODING_SIZE, "0");
      }

      // setup remoting client           
      Map<String, Object> metadata = createRemotingMetaData(reqMessage, callProps);
      Marshaller marshaller = getMarshaller();
      UnMarshaller unmarshaller = getUnmarshaller(oneway);
      InvokerLocator locator = null;
      try
      {
         // Get the invoker from Remoting for a given endpoint address
View Full Code Here

/*      */       {
/*  428 */         responseContentType = responseObject == null ? req.getContentType() : WebUtil.getContentType(responseObject);
/*      */       }
/*  430 */       res.setContentType(responseContentType);
/*      */
/*  432 */       Marshaller marshaller = getMarshaller();
/*  433 */       if ((marshaller instanceof VersionedMarshaller))
/*  434 */         ((VersionedMarshaller)marshaller).write(responseObject, response.getOutputStream(), version);
/*      */       else
/*  436 */         marshaller.write(responseObject, response.getOutputStream());
/*  437 */       return;
/*      */     }
/*      */
/*  441 */     throw new IOException("Can not send response due to version (" + version + ") not being supported.  Supported versions: " + 1 + ", " + 2 + ", " + 22);
/*      */   }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.marshal.Marshaller

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.