Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
https://issues.apache.org/activemq/browse/AMQNET-284
Initial changes for Stomp v1.1 adds the proper headers to the CONNECT frame to activate 1.1 on brokers that support it, and reads off the headers from CONNECTED when 1.1 is indicated. Adds the Read check to the current Inactivity monitor. Handles multiple header values by keeping only the first one read and discarding the rest.
- Loading branch information
Timothy A. Bish
committed
Nov 5, 2010
1 parent
c75140f
commit 9f8547bf1f8c84f972bb1f4be348fbaed8a66103
Showing
10 changed files
with
446 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -209,6 +209,14 @@ public virtual bool IsKeepAliveInfo | ||
} | ||
} | ||
|
||
public virtual bool IsWireFormatInfo | ||
{ | ||
get | ||
{ | ||
return false; | ||
} | ||
} | ||
|
||
public virtual bool ResponseRequired | ||
{ | ||
get | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -92,6 +92,11 @@ bool IsShutdownInfo | ||
get; | ||
} | ||
|
||
bool IsWireFormatInfo | ||
{ | ||
get; | ||
} | ||
|
||
Response visit(ICommandVisitor visitor); | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,99 @@ | ||
// /* | ||
// * Licensed to the Apache Software Foundation (ASF) under one or more | ||
// * contributor license agreements. See the NOTICE file distributed with | ||
// * this work for additional information regarding copyright ownership. | ||
// * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
// * (the "License"); you may not use this file except in compliance with | ||
// * the License. You may obtain a copy of the License at | ||
// * | ||
// * http://www.apache.org/licenses/LICENSE-2.0 | ||
// * | ||
// * Unless required by applicable law or agreed to in writing, software | ||
// * distributed under the License is distributed on an "AS IS" BASIS, | ||
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// * See the License for the specific language governing permissions and | ||
// * limitations under the License. | ||
// */ | ||
// | ||
using System; | ||
|
||
using Apache.NMS.Stomp.State; | ||
|
||
namespace Apache.NMS.Stomp.Commands | ||
{ | ||
public class WireFormatInfo : BaseCommand | ||
{ | ||
private long writeCheckInterval = 0; | ||
private long readCheckInterval = 0; | ||
private float version = 1.0f; | ||
private string session; | ||
|
||
public WireFormatInfo() | ||
{ | ||
} | ||
|
||
public long WriteCheckInterval | ||
{ | ||
get { return this.writeCheckInterval; } | ||
set { this.writeCheckInterval = value; } | ||
} | ||
|
||
public long ReadCheckInterval | ||
{ | ||
get { return this.readCheckInterval; } | ||
set { this.readCheckInterval = value; } | ||
} | ||
|
||
public float Version | ||
{ | ||
get { return this.version; } | ||
set { this.version = value; } | ||
} | ||
|
||
public string Session | ||
{ | ||
get { return this.session; } | ||
set { this.session = value; } | ||
} | ||
|
||
/// <summery> | ||
/// Get the unique identifier that this object and its own | ||
/// Marshaler share. | ||
/// </summery> | ||
public override byte GetDataStructureType() | ||
{ | ||
return DataStructureTypes.TransactionInfoType; | ||
} | ||
|
||
/// <summery> | ||
/// Returns a string containing the information for this DataStructure | ||
/// such as its type and value of its elements. | ||
/// </summery> | ||
public override string ToString() | ||
{ | ||
return GetType().Name + "[" + | ||
"WriteCheckInterval=" + WriteCheckInterval + ", " + | ||
"ReadCheckInterval=" + ReadCheckInterval + ", " + | ||
"Session=" + Session + ", " + | ||
"Version=" + Version + | ||
"]"; | ||
} | ||
|
||
/// <summery> | ||
/// Return an answer of true to the IsWireFormatInfo() query. | ||
/// </summery> | ||
public override bool IsWireFormatInfo | ||
{ | ||
get | ||
{ | ||
return true; | ||
} | ||
} | ||
|
||
public override Response visit(ICommandVisitor visitor) | ||
{ | ||
return null; | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.