Codota Logo
RequestLine.setMethod
Code IndexAdd Codota to your IDE (free)

How to use
setMethod
method
in
gov.nist.javax.sip.header.RequestLine

Best Java code snippets using gov.nist.javax.sip.header.RequestLine.setMethod (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.jitsi/jain-sip-ri-ossonly

/**
 * Set the method.
 * 
 * @param method is the method to set.
 * @throws IllegalArgumentException if the method is null
 */
public void setMethod(String method) {
  if (method == null)
    throw new IllegalArgumentException("null method");
  if (this.requestLine == null) {
    this.requestLine = new RequestLine();
  }
  // Set to standard constants to speed up processing.
  // this makes equals compares run much faster in the
  // stack because then it is just identity comparision
  String meth = getCannonicalName(method);
  this.requestLine.setMethod(meth);
  if (this.cSeqHeader != null) {
    try {
      this.cSeqHeader.setMethod(meth);
    } catch (ParseException e) {
    }
  }
}
origin: org.jitsi/jain-sip-ri-ossonly

/**
 * Patch up the request line as necessary.
 */
protected void setRequestLineDefaults() {
  String method = requestLine.getMethod();
  if (method == null) {
    CSeq cseq = (CSeq) this.getCSeq();
    if (cseq != null) {
      method = getCannonicalName(cseq.getMethod());
      requestLine.setMethod(method);
    }
  }
}
origin: org.mobicents.javax.sip/mobicents-jain-sip-ext

public RequestLine parse() throws ParseException {
  if (debug)
    dbg_enter("parse");
  try {
    RequestLine retval = new RequestLine();
    String m = method();
    lexer.SPorHT();
    retval.setMethod(m);
    this.lexer.selectLexer("sip_urlLexer");
    URLParser urlParser = new URLParser(this.getLexer());
    GenericURI url = urlParser.uriReference(true);
    lexer.SPorHT();
    retval.setUri(url);
    this.lexer.selectLexer("request_lineLexer");
    String v = sipVersion();
    retval.setSipVersion(v);
    lexer.SPorHT();
    lexer.match('\n');
    return retval;
  } finally {
    if (debug)
      dbg_leave("parse");
  }
}
origin: org.jitsi/jain-sip-ri-ossonly

public RequestLine parse() throws ParseException {
  if (debug)
    dbg_enter("parse");
  try {
    RequestLine retval = new RequestLine();
    String m = method();
    lexer.SPorHT();
    retval.setMethod(m);
    this.lexer.selectLexer("sip_urlLexer");
    URLParser urlParser = new URLParser(this.getLexer());
    GenericURI url = urlParser.uriReference(true);
    lexer.SPorHT();
    retval.setUri(url);
    this.lexer.selectLexer("request_lineLexer");
    String v = sipVersion();
    retval.setSipVersion(v);
    lexer.SPorHT();
    lexer.match('\n');
    return retval;
  } finally {
    if (debug)
      dbg_leave("parse");
  }
}
gov.nist.javax.sip.headerRequestLinesetMethod

Popular methods of RequestLine

  • <init>
    Constructor given the request URI and the method.
  • encode
  • getUri
  • setSipVersion
  • setUri
  • clone
  • debugDump
  • equals
    Compare for equality.
  • getMethod
  • getSipVersion
  • match
  • toString
  • match,
  • toString

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JOptionPane (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now