Package org.jboss.remoting.marshal

Examples of org.jboss.remoting.marshal.Marshaller


/*     */       {
/* 136 */         serializationType = serializationTypeParam;
/*     */       }
/*     */     }
/*     */
/* 140 */     Marshaller marshaller = null;
/* 141 */     UnMarshaller unmarshaller = null;
/* 142 */     int tempTimeout = -1;
/* 143 */     int savedTimeout = getTimeout();
/*     */
/* 145 */     if (metadata != null)
View Full Code Here


/*     */       {
/* 149 */         response.setContentType(requestContentType);
/* 150 */         int iContentLength = getContentLength(invocationResponse);
/* 151 */         response.setContentLength(iContentLength);
/* 152 */         ServletOutputStream outputStream = response.getOutputStream();
/* 153 */         Marshaller marshaller = MarshalFactory.getMarshaller("http", getSerializationType());
/* 154 */         if ((marshaller instanceof VersionedMarshaller))
/* 155 */           ((VersionedMarshaller)marshaller).write(invocationResponse, outputStream, Version.getDefaultVersion());
/*     */         else
/* 157 */           marshaller.write(invocationResponse, outputStream);
/* 158 */         outputStream.close();
/*     */       }
/*     */
/*     */     }
/*     */     catch (ClassNotFoundException e)
View Full Code Here

/*     */       {
/* 292 */         String responseContentType = invocationResponse == null ? requestContentType : WebUtil.getContentType(invocationResponse);
/* 293 */         response.setContentType(responseContentType);
/*     */
/* 296 */         ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
/* 297 */         Marshaller marshaller = getMarshaller();
/* 298 */         if ((marshaller instanceof VersionedMarshaller))
/* 299 */           ((VersionedMarshaller)marshaller).write(invocationResponse, outputStream, Version.getDefaultVersion());
/*     */         else
/* 301 */           marshaller.write(invocationResponse, outputStream);
/* 302 */         retval = outputStream.toByteArray();
/* 303 */         response.setContentLength(retval.length);
/*     */       }
/*     */
/*     */     }
View Full Code Here

/*     */     Client client;
/*     */     try
/*     */     {
/* 223 */       log.debug("Get locator for: " + endpoint);
/*     */
/* 225 */       Marshaller marshaller = getMarshaller();
/* 226 */       UnMarshaller unmarshaller = getUnmarshaller();
/*     */
/* 238 */       String version = getRemotingVersion();
/* 239 */       if (version.startsWith("1.4"))
/*     */       {
View Full Code Here

  
   private void runHttpTest(String algo)
   throws IOException, ClassNotFoundException
   {
      String datatype = "encryptedHTTP";
      Marshaller m = MarshalFactory.getMarshaller(HTTPMarshaller.DATATYPE);
      UnMarshaller u = MarshalFactory.getUnMarshaller(HTTPUnMarshaller.DATATYPE);
      EncryptingMarshaller em =  new EncryptingMarshaller(m);
      EncryptingUnMarshaller um =  new EncryptingUnMarshaller(u);
      if(algo != null)
      {
View Full Code Here

  
   private void runHttpTest(String algo)
   throws IOException, ClassNotFoundException
   {
      String datatype = "encryptedHTTP";
      Marshaller m = MarshalFactory.getMarshaller(HTTPMarshaller.DATATYPE);
      UnMarshaller u = MarshalFactory.getUnMarshaller(HTTPUnMarshaller.DATATYPE);
      EncryptingMarshaller em =  new EncryptingMarshaller(m);
      EncryptingUnMarshaller um =  new EncryptingUnMarshaller(u);
      if(algo != null)
      {
View Full Code Here

         String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
         PatternLayout layout = new PatternLayout(pattern);
         ConsoleAppender consoleAppender = new ConsoleAppender(layout);
         Logger.getRootLogger().addAppender(consoleAppender);
        
         Marshaller marshaller = new CompressingMarshaller(new HTTPMarshaller());
         UnMarshaller unmarshaller = new CompressingUnMarshaller(new HTTPUnMarshaller());
         MarshalFactory.addMarshaller("compressedHttp", marshaller, unmarshaller);
        
         StringBuffer sb = new StringBuffer();
         for (int i = 0; i < 200; i++)
View Full Code Here

      if (log.isTraceEnabled())
      {
         log.trace((++invokeCount) + ") invoking =>" + invocationReq + " with parameter: " + invocationReq.getParameter());
      }

      Marshaller marshaller = getMarshaller();
      UnMarshaller unmarshaller = getUnMarshaller();

      if (marshaller == null)
      {
         // try by locator (in case marshaller class name specified)
View Full Code Here

      return unmarshaller;
   }

   public Marshaller getMarshaller()
   {
      Marshaller marshaller = MarshalFactory.getMarshaller(getLocator(), this.getClass().getClassLoader());

      if(marshaller == null)
      {
         marshaller = MarshalFactory.getMarshaller(getDataType(), getSerializationType());
      }
View Full Code Here

               dataOutput.write(("\r\n" + "\r\n").getBytes());

               if(methodType != null && !methodType.equals("HEAD"))
               {
                  // write response
                  Marshaller marshaller = getMarshaller();
                  marshaller.write(response, dataOutput);
               }
            }
         }
         else
         {
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.