Codota Logo
ServerConfigImpl
Code IndexAdd Codota to your IDE (free)

How to use
ServerConfigImpl
in
org.eclipse.che.api.workspace.server.model.impl

Best Java code snippets using org.eclipse.che.api.workspace.server.model.impl.ServerConfigImpl (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.eclipse.che.core/che-core-api-workspace

@Override
public int hashCode() {
 return Objects.hash(id, getPort(), getProtocol(), getPath(), getAttributes());
}
origin: org.eclipse.che.core/che-core-api-workspace

public ServerConfigImpl withAttributes(Map<String, String> attributes) {
 setAttributes(attributes);
 return this;
}
origin: org.eclipse.che.infrastructure/infrastructure-openshift

 private void fillRouteServers(Route route, Map<String, ServerImpl> servers) {
  Annotations.newDeserializer(route.getMetadata().getAnnotations())
    .servers()
    .forEach(
      (name, config) ->
        servers.put(
          name,
          newServer(
            config.getProtocol(),
            route.getSpec().getHost(),
            null,
            config.getPath(),
            config.getAttributes())));
 }
}
origin: org.eclipse.che.infrastructure/infrastructure-openshift

private void useSecureProtocolForServers(final Route route) {
 Map<String, ServerConfigImpl> servers =
   Annotations.newDeserializer(route.getMetadata().getAnnotations()).servers();
 servers.values().forEach(s -> s.setProtocol(getSecureProtocol(s.getProtocol())));
 Map<String, String> annotations = Annotations.newSerializer().servers(servers).annotations();
 route.getMetadata().getAnnotations().putAll(annotations);
}
origin: org.eclipse.che.core/che-core-api-workspace

.collect(
  Collectors.toMap(
    Map.Entry::getKey, entry -> new ServerConfigImpl(entry.getValue())));
origin: org.eclipse.che.core/che-core-api-workspace

 private ServerConfig normalizeServer(ServerConfig serverConfig) {
  String port = serverConfig.getPort();
  if (port != null && !port.contains("/")) {
   port = port + "/tcp";
  }
  return new ServerConfigImpl(
    port, serverConfig.getProtocol(), serverConfig.getPath(), serverConfig.getAttributes());
 }
}
origin: org.eclipse.che.core/che-core-api-workspace

@Override
public boolean equals(Object o) {
 if (this == o) {
  return true;
 }
 if (!(o instanceof ServerConfigImpl)) {
  return false;
 }
 ServerConfigImpl that = (ServerConfigImpl) o;
 return Objects.equals(id, that.id)
   && Objects.equals(getPort(), that.getPort())
   && Objects.equals(getProtocol(), that.getProtocol())
   && Objects.equals(getPath(), that.getPath())
   && Objects.equals(getAttributes(), that.getAttributes());
}
org.eclipse.che.api.workspace.server.model.implServerConfigImpl

Most used methods

  • getAttributes
  • getPath
  • getProtocol
  • <init>
  • getPort
  • setAttributes
  • setProtocol

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Kernel (java.awt.image)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ImageIO (javax.imageio)
  • JLabel (javax.swing)
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