Tabnine Logo
DefaultUpgradeFuture
Code IndexAdd Tabnine to your IDE (free)

How to use
DefaultUpgradeFuture
in
org.kaazing.gateway.transport

Best Java code snippets using org.kaazing.gateway.transport.DefaultUpgradeFuture (Showing top 5 results out of 315)

origin: kaazing/gateway

public DefaultUpgradeFuture(IoSession session) {
  super(session);
  this.setSession(session);
}
origin: kaazing/gateway

@Override
public boolean isUpgraded() {
  if (isDone()) {
    return (Boolean) getValue();
  } else {
    return false;
  }
}
origin: kaazing/gateway

@Override
public void setUpgraded() {
  setValue(Boolean.TRUE);
}
origin: kaazing/gateway

@SuppressWarnings("deprecation")
private DefaultHttpSession(IoServiceEx service,
              IoProcessorEx<DefaultHttpSession> processor,
              ResourceAddress address,
              ResourceAddress remoteAddress,
              IoSessionEx parent,
              IoBufferAllocatorEx<HttpBuffer> allocator,
              Direction direction,
              Properties configuration) {
  super(service, processor, address, remoteAddress, parent, allocator, direction);
  writeHeaders = new LinkedHashMap<>();
  writeCookies = new HashSet<>();
  status = direction == Direction.READ ? HttpStatus.SUCCESS_OK : null;
  reason = null;
  secure = SslUtils.isSecure(parent);
  committing = new AtomicBoolean(false);
  connectionClose = new AtomicBoolean(false);
  shutdownWrite = new AtomicBoolean(false);
  upgradeFuture = new DefaultUpgradeFuture(parent);
  commitFuture = new DefaultCommitFuture(this);
  responseFuture = direction == Direction.READ ? null : new DefaultResponseFuture(this);
  httpxeSpecCompliant = configuration == null ? false : HTTPXE_SPECIFICATION.getBooleanProperty(configuration);
  // TODO: add and use new HttpResourceAddress "maximum.redirects" option of type Integer, default 5
  //redirectsAllowed = ((HttpResourceAddress) remoteAddress).getOption(HttpResourceAddress.MAXIMUM_REDIRECTS);
  redirectsAllowed = 0;
}
origin: kaazing/gateway

public IoSessionEx setParent(IoSessionEx newParent){
  this.setLocalAddress(LOCAL_ADDRESS.get(newParent));
  // newParent.getRemoteAddress(); httpSession.setLocalAddress((ResourceAddress)redirectRemoteAddress);
  upgradeFuture.setSession(newParent);
  if (!SslUtils.isSecure(newParent) && secure) {
    throw new InvalidParameterException("Can not switch from a secure session to a non-secure session");
  }
  return super.setParent(newParent);
}
org.kaazing.gateway.transportDefaultUpgradeFuture

Most used methods

  • setSession
  • <init>
  • getValue
  • isDone
  • setValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Reference (javax.naming)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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