Lines Matching defs:version
61 * @version $Revision: 574185 $
99 * Formats a protocol version.
101 * @param version the protocol version to format
106 * @return the formatted protocol version
109 String formatProtocolVersion(final ProtocolVersion version,
113 return formatter.appendProtocolVersion(null, version).toString();
119 final ProtocolVersion version) {
120 if (version == null) {
122 ("Protocol version may not be null");
127 final int len = estimateProtocolVersionLen(version);
134 result.append(version.getProtocol());
136 result.append(Integer.toString(version.getMajor()));
138 result.append(Integer.toString(version.getMinor()));
145 * Guesses the length of a formatted protocol version.
148 * @param version the protocol version to format, or <code>null</code>
150 * @return the estimated length of the formatted protocol version,
153 protected int estimateProtocolVersionLen(final ProtocolVersion version) {
154 return version.getProtocol().length() + 4; // room for "HTTP/1.1"