org.glassfish.api.embedded.web
Class WebBuilder

java.lang.Object
  extended by org.glassfish.api.embedded.web.WebBuilder
All Implemented Interfaces:
ContainerBuilder<EmbeddedWebContainer>

@Service(name="web")
public class WebBuilder
extends Object
implements ContainerBuilder<EmbeddedWebContainer>

Configuration for the WebContainer instance


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.api.embedded.ContainerBuilder
ContainerBuilder.Type
 
Constructor Summary
WebBuilder()
           
 
Method Summary
 EmbeddedWebContainer create(Server server)
          Creates a embedded container
 URL getDefaultWebXml()
           
 File getDocRootDir()
           
 String[] getHostNames()
          Gets the host names of the default VirtualServer (default: localhost).
 String getVirtualServerId()
          Gets the id of the default VirtualServer (default: server).
 WebBuilder setDefaultWebXml(URL url)
           
 WebBuilder setDocRootDir(File f)
           
 void setHostNames(String... hostNames)
          Sets the host names of the default VirtualServer (default: localhost).
 WebBuilder setHttpListenerName(String name)
           
 WebBuilder setListings(boolean b)
           
 void setVirtualServerId(String virtualServerId)
          Sets the id of the default VirtualServer (default: server).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebBuilder

public WebBuilder()
Method Detail

setDefaultWebXml

public WebBuilder setDefaultWebXml(URL url)

getDefaultWebXml

public URL getDefaultWebXml()

setHttpListenerName

public WebBuilder setHttpListenerName(String name)

setDocRootDir

public WebBuilder setDocRootDir(File f)

getDocRootDir

public File getDocRootDir()

setListings

public WebBuilder setListings(boolean b)

setVirtualServerId

public void setVirtualServerId(String virtualServerId)
Sets the id of the default VirtualServer (default: server).

Parameters:
virtualServerId - the id of the default VirtualServer

getVirtualServerId

public String getVirtualServerId()
Gets the id of the default VirtualServer (default: server).

Returns:
the id of the default VirtualServer

setHostNames

public void setHostNames(String... hostNames)
Sets the host names of the default VirtualServer (default: localhost).

Parameters:
hostNames - the host names of the default VirtualServer

getHostNames

public String[] getHostNames()
Gets the host names of the default VirtualServer (default: localhost).

Returns:
the host names of the default VirtualServer

create

public EmbeddedWebContainer create(Server server)
Description copied from interface: ContainerBuilder
Creates a embedded container

Specified by:
create in interface ContainerBuilder<EmbeddedWebContainer>
Parameters:
server - the embedded server in which the container resides.
Returns:
the embedded container instance


Submit a bug or feature

Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.

Generated on 12-March-2010 04:35