Tabnine Logo
com.wizzardo.tools.http
Code IndexAdd Tabnine to your IDE (free)

How to use com.wizzardo.tools.http

Best Java code snippets using com.wizzardo.tools.http (Showing top 20 results out of 315)

origin: com.wizzardo.tools/tools-http

public Request createRequest(String url) {
  return super.createRequest(url)
      .setSession(this)
      .setCookies(getCookies(url));
}
origin: com.wizzardo.tools/tools-http

protected Response(Request request, HttpURLConnection connection) {
  this.connection = connection;
  this.request = request;
  if (request.session != null)
    request.session.appendCookies(parseCookies());
}
origin: com.wizzardo.tools/tools-http

@Override
public Request createRequest(String url) {
  return super.createRequest(url).setSession(session);
}
origin: com.wizzardo.tools/tools-http

public static Request createRequest(String url) {
  if (session == null)
    session = new HttpSession();
  return session.createRequest(url);
}
origin: com.wizzardo.tools/tools-http

public Response get() throws IOException {
  setMethod(ConnectionMethod.GET);
  return execute();
}
origin: com.wizzardo.tools/tools-http

public T data(byte[] data, String contentType) {
  this.data = data;
  method = ConnectionMethod.POST;
  setContentType(contentType);
  return self();
}
origin: com.wizzardo.tools/tools-http

public List<Cookie> getCookies() {
  if (request.session != null)
    return request.session.getCookies(connection.getURL());
  else
    return parseCookies();
}
origin: com.wizzardo.tools/tools-http

public T timeout(int ms) {
  this.connectTimeout = ms;
  this.readTimeout = ms;
  return self();
}
origin: com.wizzardo.tools/tools-http

public String getUrl() {
  try {
    return createURL(url, params);
  } catch (UnsupportedEncodingException e) {
    return url;
  }
}
origin: com.wizzardo.tools/tools-http

public long headerLong(String key, long def) {
  try {
    return headerLong(key);
  } catch (NumberFormatException e) {
    return def;
  }
}
origin: com.wizzardo.tools/tools-http

  @Override
  public void accept(String s) {
    reference.value = reducer.reduce(reference.value, s);
  }
});
origin: com.wizzardo.tools/tools-http

public int headerInt(String key, int def) {
  try {
    return headerInt(key);
  } catch (NumberFormatException e) {
    return def;
  }
}
origin: wizzardo/tools

public Request createRequest(String url) {
  return super.createRequest(url)
      .setSession(this)
      .setCookies(getCookies(url));
}
origin: wizzardo/tools

public static Request createRequest(String url) {
  if (session == null)
    session = new HttpSession();
  return session.createRequest(url);
}
origin: com.wizzardo.tools/tools-http

public Response options() throws IOException {
  setMethod(ConnectionMethod.OPTIONS);
  return execute();
}
origin: wizzardo/tools

protected Response(Request request, HttpURLConnection connection) {
  this.connection = connection;
  this.request = request;
  if (request.session != null)
    request.session.appendCookies(parseCookies());
}
origin: wizzardo/tools

@Override
public Request createRequest(String url) {
  return super.createRequest(url).setSession(session);
}
origin: wizzardo/tools

public T timeout(int ms) {
  this.connectTimeout = ms;
  this.readTimeout = ms;
  return self();
}
origin: wizzardo/tools

public String getUrl() {
  try {
    return createURL(url, params);
  } catch (UnsupportedEncodingException e) {
    return url;
  }
}
origin: wizzardo/tools

public long headerLong(String key, long def) {
  try {
    return headerLong(key);
  } catch (NumberFormatException e) {
    return def;
  }
}
com.wizzardo.tools.http

Most used classes

  • Request
  • Response
  • HttpSession
  • ConnectionMethod
  • Cookie
  • RequestArguments,
  • Response$1,
  • Response$Consumer,
  • Response$Reducer
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