public SwaggerWebAppFraction addWebContent(String content){
  if (content == null)   return this;
  if (content.equals(""))   return this;
  File maybeFile=new File(content);
  if (!maybeFile.exists()) {
    try {
      this.webContent=Swarm.artifact(content);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
 else   if (maybeFile.isDirectory()) {
    try {
      this.webContent=loadFromDirectory(maybeFile);
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
 else {
    this.webContent=ShrinkWrap.createFromZipFile(JARArchive.class,maybeFile);
  }
  return this;
}

public SwaggerWebAppFraction addWebContent ( String content ) { if ( content == null ) return this ; if ( content . equals ( "" ) ) return this ; File maybeFile = new File ( content ) ; if ( ! maybeFile . exists ( ) ) { try { this . webContent = Swarm . artifact ( content ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } else if ( maybeFile . isDirectory ( ) ) { try { this . webContent = loadFromDirectory ( maybeFile ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } else { this . webContent = ShrinkWrap . createFromZipFile ( JARArchive . class , maybeFile ) ; } return this ; }
allows customization of the swagger - ui web interface . the string provided can be one of either : - path to a directory on disk - path to a jar / war / zip file on disk - a gav string with maven coordinates
