Codota Logo
ParameterList.copyOf
Code IndexAdd Codota to your IDE (free)

How to use
copyOf
method
in
org.openid4java.message.ParameterList

Best Java code snippets using org.openid4java.message.ParameterList.copyOf (Showing top 5 results out of 315)

  • Common ways to obtain ParameterList
private void myMethod () {
ParameterList p =
  • Codota IconHttpServletRequest request;new ParameterList(request.getParameterMap())
  • Codota Iconnew ParameterList()
  • Codota IconMap parameterMap;new ParameterList(parameterMap)
  • Smart code suggestions by Codota
}
origin: com.cloudbees/openid4java-shaded

/**
 * Makes a HTTP call to the specified URL with the parameters specified
 * in the Message.
 *
 * @param url       URL endpoint for the HTTP call
 * @param request   Message containing the parameters
 * @param response  ParameterList that will hold the parameters received in
 *                  the HTTP response
 * @return          the status code of the HTTP call
 */
private int call(String url, Message request, ParameterList response)
    throws MessageException
{
  int responseCode = -1;
  try
  {
    if (DEBUG) _log.debug("Performing HTTP POST on " + url);
    HttpResponse resp = _httpFetcher.post(url, request.getParameterMap());
    responseCode = resp.getStatusCode();
    String postResponse = resp.getBody();
    response.copyOf(ParameterList.createFromKeyValueForm(postResponse));
    if (DEBUG) _log.debug("Retrived response:\n" + postResponse);
  }
  catch (IOException e)
  {
    _log.error("Error talking to " + url +
        " response code: " + responseCode, e);
  }
  return responseCode;
}
origin: jbufu/openid4java

/**
 * Makes a HTTP call to the specified URL with the parameters specified
 * in the Message.
 *
 * @param url       URL endpoint for the HTTP call
 * @param request   Message containing the parameters
 * @param response  ParameterList that will hold the parameters received in
 *                  the HTTP response
 * @return          the status code of the HTTP call
 */
private int call(String url, Message request, ParameterList response)
    throws MessageException
{
  int responseCode = -1;
  try
  {
    if (DEBUG) _log.debug("Performing HTTP POST on " + url);
    HttpResponse resp = _httpFetcher.post(url, request.getParameterMap());
    responseCode = resp.getStatusCode();
    String postResponse = resp.getBody();
    response.copyOf(ParameterList.createFromKeyValueForm(postResponse));
    if (DEBUG) _log.debug("Retrived response:\n" + postResponse);
  }
  catch (IOException e)
  {
    _log.error("Error talking to " + url +
        " response code: " + responseCode, e);
  }
  return responseCode;
}
origin: org.openid4java/openid4java-nodeps

/**
 * Makes a HTTP call to the specified URL with the parameters specified
 * in the Message.
 *
 * @param url       URL endpoint for the HTTP call
 * @param request   Message containing the parameters
 * @param response  ParameterList that will hold the parameters received in
 *                  the HTTP response
 * @return          the status code of the HTTP call
 */
private int call(String url, Message request, ParameterList response)
    throws MessageException
{
  int responseCode = -1;
  try
  {
    if (DEBUG) _log.debug("Performing HTTP POST on " + url);
    HttpResponse resp = _httpFetcher.post(url, request.getParameterMap());
    responseCode = resp.getStatusCode();
    String postResponse = resp.getBody();
    response.copyOf(ParameterList.createFromKeyValueForm(postResponse));
    if (DEBUG) _log.debug("Retrived response:\n" + postResponse);
  }
  catch (IOException e)
  {
    _log.error("Error talking to " + url +
        " response code: " + responseCode, e);
  }
  return responseCode;
}
origin: org.openid4java/openid4java

/**
 * Makes a HTTP call to the specified URL with the parameters specified
 * in the Message.
 *
 * @param url       URL endpoint for the HTTP call
 * @param request   Message containing the parameters
 * @param response  ParameterList that will hold the parameters received in
 *                  the HTTP response
 * @return          the status code of the HTTP call
 */
private int call(String url, Message request, ParameterList response)
    throws MessageException
{
  int responseCode = -1;
  try
  {
    if (DEBUG) _log.debug("Performing HTTP POST on " + url);
    HttpResponse resp = _httpFetcher.post(url, request.getParameterMap());
    responseCode = resp.getStatusCode();
    String postResponse = resp.getBody();
    response.copyOf(ParameterList.createFromKeyValueForm(postResponse));
    if (DEBUG) _log.debug("Retrived response:\n" + postResponse);
  }
  catch (IOException e)
  {
    _log.error("Error talking to " + url +
        " response code: " + responseCode, e);
  }
  return responseCode;
}
origin: org.wso2.org.openid4java/openid4java-nodeps

/**
 * Makes a HTTP call to the specified URL with the parameters specified
 * in the Message.
 *
 * @param url      URL endpoint for the HTTP call
 * @param request  Message containing the parameters
 * @param response ParameterList that will hold the parameters received in
 *                 the HTTP response
 * @return the status code of the HTTP call
 */
private int call(String url, Message request, ParameterList response)
    throws MessageException {
  int responseCode = -1;
  try {
    if (DEBUG) {
      _log.debug("Performing HTTP POST on " + url);
    }
    HttpResponse resp = _httpFetcher.post(url, request.getParameterMap());
    responseCode = resp.getStatusCode();
    String postResponse = resp.getBody();
    response.copyOf(ParameterList.createFromKeyValueForm(postResponse));
    if (DEBUG) {
      _log.debug("Retrived response:\n" + postResponse);
    }
  } catch (IOException e) {
    _log.error("Error talking to " + url +
          " response code: " + responseCode, e);
  }
  return responseCode;
}
org.openid4java.messageParameterListcopyOf

Popular methods of ParameterList

  • <init>
  • getParameterValue
  • hasParameter
  • getParameters
  • getParameter
  • hasParameterPrefix
  • set
  • createFromKeyValueForm
  • removeParameters
  • toString

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Path (java.nio.file)
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Runner (org.openjdk.jmh.runner)
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