[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/http ...

Tom Elrod tom.elrod at jboss.com
Thu Sep 21 00:43:06 EDT 2006


  User: telrod  
  Date: 06/09/21 00:43:06

  Modified:    src/main/org/jboss/remoting/transport/http  
                        HTTPClientInvoker.java HTTPMetadataConstants.java
  Log:
  JBREM-601 - changes to how leasing works within http invoker transport (basically so messaging will work with http transport).
  
  Revision  Changes    Path
  1.29      +6 -1      JBossRemoting/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: HTTPClientInvoker.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -b -r1.28 -r1.29
  --- HTTPClientInvoker.java	28 Aug 2006 14:35:46 -0000	1.28
  +++ HTTPClientInvoker.java	21 Sep 2006 04:43:06 -0000	1.29
  @@ -294,7 +294,12 @@
                  conn.setDoOutput(false);
                  conn.setDoInput(true);
                  conn.setRequestMethod("HEAD");
  -
  +               // set the remoting version
  +               conn.setRequestProperty(HTTPMetadataConstants.REMOTING_VERSION_HEADER, new Integer(Version.getDefaultVersion()).toString());
  +               // set the user agent
  +               conn.setRequestProperty(HTTPMetadataConstants.REMOTING_USER_AGENT, "JBossRemoting - " + Version.VERSION);
  +               conn.setRequestProperty(HTTPMetadataConstants.REMOTING_LEASE_QUERY, "true");
  +               conn.setRequestProperty("sessionId", request.getSessionId());
                  conn.connect();
   
                  //InputStream is = (conn.getResponseCode() < 400) ? conn.getInputStream() : conn.getErrorStream();
  
  
  
  1.9       +1 -0      JBossRemoting/src/main/org/jboss/remoting/transport/http/HTTPMetadataConstants.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: HTTPMetadataConstants.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/http/HTTPMetadataConstants.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- HTTPMetadataConstants.java	17 Jul 2006 04:54:00 -0000	1.8
  +++ HTTPMetadataConstants.java	21 Sep 2006 04:43:06 -0000	1.9
  @@ -39,6 +39,7 @@
      public static final String RESPONSE_CODE_MESSAGE = "ResponseCodeMessage";
      public static final String REMOTING_VERSION_HEADER = "JBoss-Remoting-Version";
      public static final String REMOTING_USER_AGENT = "User-Agent";
  +   public static final String REMOTING_LEASE_QUERY = "JBoss-Remoting-Lease-Query";
   
      /**
       * Configuration key for indicating if http client invoker should
  
  
  



More information about the jboss-cvs-commits mailing list