Tabnine Logo
BasicTokenIterator.isHttpSeparator
Code IndexAdd Tabnine to your IDE (free)

How to use
isHttpSeparator
method
in
org.apache.http.message.BasicTokenIterator

Best Java code snippets using org.apache.http.message.BasicTokenIterator.isHttpSeparator (Showing top 10 results out of 315)

origin: robovm/robovm

/**
 * Checks whether a character is a valid token character.
 * Whitespace, control characters, and HTTP separators are not
 * valid token characters. The HTTP specification (RFC 2616, section 2.2)
 * defines tokens only for the US-ASCII character set, this
 * method extends the definition to other character sets.
 *
 * @param ch        the character to check
 *
 * @return  <code>true</code> if the character is a valid token start,
 *          <code>false</code> otherwise
 */
protected boolean isTokenChar(char ch) {
  // common sense extension of ALPHA + DIGIT
  if (Character.isLetterOrDigit(ch))
    return true;
  // common sense extension of CTL
  if (Character.isISOControl(ch))
    return false;
  // no common sense extension for this
  if (isHttpSeparator(ch))
    return false;
  // RFC 2616, section 2.2 defines a token character as
  // "any CHAR except CTLs or separators". The controls
  // and separators are included in the checks above.
  // This will yield unexpected results for Unicode format characters.
  // If that is a problem, overwrite isHttpSeparator(char) to filter
  // out the false positives.
  return true;
}
origin: MobiVM/robovm

/**
 * Checks whether a character is a valid token character.
 * Whitespace, control characters, and HTTP separators are not
 * valid token characters. The HTTP specification (RFC 2616, section 2.2)
 * defines tokens only for the US-ASCII character set, this
 * method extends the definition to other character sets.
 *
 * @param ch        the character to check
 *
 * @return  <code>true</code> if the character is a valid token start,
 *          <code>false</code> otherwise
 */
protected boolean isTokenChar(char ch) {
  // common sense extension of ALPHA + DIGIT
  if (Character.isLetterOrDigit(ch))
    return true;
  // common sense extension of CTL
  if (Character.isISOControl(ch))
    return false;
  // no common sense extension for this
  if (isHttpSeparator(ch))
    return false;
  // RFC 2616, section 2.2 defines a token character as
  // "any CHAR except CTLs or separators". The controls
  // and separators are included in the checks above.
  // This will yield unexpected results for Unicode format characters.
  // If that is a problem, overwrite isHttpSeparator(char) to filter
  // out the false positives.
  return true;
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Checks whether a character is a valid token character.
 * Whitespace, control characters, and HTTP separators are not
 * valid token characters. The HTTP specification (RFC 2616, section 2.2)
 * defines tokens only for the US-ASCII character set, this
 * method extends the definition to other character sets.
 *
 * @param ch        the character to check
 *
 * @return  <code>true</code> if the character is a valid token start,
 *          <code>false</code> otherwise
 */
protected boolean isTokenChar(char ch) {
  // common sense extension of ALPHA + DIGIT
  if (Character.isLetterOrDigit(ch))
    return true;
  // common sense extension of CTL
  if (Character.isISOControl(ch))
    return false;
  // no common sense extension for this
  if (isHttpSeparator(ch))
    return false;
  // RFC 2616, section 2.2 defines a token character as
  // "any CHAR except CTLs or separators". The controls
  // and separators are included in the checks above.
  // This will yield unexpected results for Unicode format characters.
  // If that is a problem, overwrite isHttpSeparator(char) to filter
  // out the false positives.
  return true;
}
origin: FlexoVM/flexovm

/**
 * Checks whether a character is a valid token character.
 * Whitespace, control characters, and HTTP separators are not
 * valid token characters. The HTTP specification (RFC 2616, section 2.2)
 * defines tokens only for the US-ASCII character set, this
 * method extends the definition to other character sets.
 *
 * @param ch        the character to check
 *
 * @return  <code>true</code> if the character is a valid token start,
 *          <code>false</code> otherwise
 */
protected boolean isTokenChar(char ch) {
  // common sense extension of ALPHA + DIGIT
  if (Character.isLetterOrDigit(ch))
    return true;
  // common sense extension of CTL
  if (Character.isISOControl(ch))
    return false;
  // no common sense extension for this
  if (isHttpSeparator(ch))
    return false;
  // RFC 2616, section 2.2 defines a token character as
  // "any CHAR except CTLs or separators". The controls
  // and separators are included in the checks above.
  // This will yield unexpected results for Unicode format characters.
  // If that is a problem, overwrite isHttpSeparator(char) to filter
  // out the false positives.
  return true;
}
origin: Nextdoor/bender

if (isHttpSeparator(ch)) {
  return false;
origin: at.bestsolution.efxclipse.eclipse/org.apache.httpcomponents.httpcore

if (isHttpSeparator(ch)) {
  return false;
origin: com.gluonhq/robovm-rt

/**
 * Checks whether a character is a valid token character.
 * Whitespace, control characters, and HTTP separators are not
 * valid token characters. The HTTP specification (RFC 2616, section 2.2)
 * defines tokens only for the US-ASCII character set, this
 * method extends the definition to other character sets.
 *
 * @param ch        the character to check
 *
 * @return  <code>true</code> if the character is a valid token start,
 *          <code>false</code> otherwise
 */
protected boolean isTokenChar(char ch) {
  // common sense extension of ALPHA + DIGIT
  if (Character.isLetterOrDigit(ch))
    return true;
  // common sense extension of CTL
  if (Character.isISOControl(ch))
    return false;
  // no common sense extension for this
  if (isHttpSeparator(ch))
    return false;
  // RFC 2616, section 2.2 defines a token character as
  // "any CHAR except CTLs or separators". The controls
  // and separators are included in the checks above.
  // This will yield unexpected results for Unicode format characters.
  // If that is a problem, overwrite isHttpSeparator(char) to filter
  // out the false positives.
  return true;
}
origin: ibinti/bugvm

if (isHttpSeparator(ch)) {
  return false;
origin: com.bugvm/bugvm-rt

if (isHttpSeparator(ch)) {
  return false;
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

if (isHttpSeparator(ch)) {
  return false;
org.apache.http.messageBasicTokenIteratorisHttpSeparator

Javadoc

Checks whether a character is an HTTP separator. The implementation in this class checks only for the HTTP separators defined in RFC 2616, section 2.2. If you need to detect other separators beyond the US-ASCII character set, override this method.

Popular methods of BasicTokenIterator

  • <init>
    Creates a new instance of BasicTokenIterator.
  • createToken
    Creates a new token to be returned. Called from #findNext after the token is identified. The default
  • findNext
    Determines the next token. If found, the token is stored in #currentToken. The return value indicate
  • findTokenEnd
    Determines the ending position of the current token. This method will not leave the current header v
  • findTokenSeparator
    Determines the position of the next token separator. Because of multi-header joining rules, the end
  • findTokenStart
    Determines the starting position of the next token. This method will iterate over headers if necessa
  • isTokenChar
    Checks whether a character is a valid token character. Whitespace, control characters, and HTTP sepa
  • isTokenSeparator
    Checks whether a character is a token separator. RFC 2616, section 2.1 defines comma as the separato
  • isWhitespace
    Checks whether a character is a whitespace character. RFC 2616, section 2.2 defines space and horizo
  • nextToken
    Obtains the next token from this iteration.

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Kernel (java.awt.image)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now