Class WebListenerConfig
- java.lang.Object
-
- org.glassfish.embeddable.web.config.WebListenerConfig
-
public class WebListenerConfig extends Object
Class that is used for configuring WebListener instances.- See Also:
WebListener
-
-
Constructor Summary
Constructors Constructor Description WebListenerConfig(String id, int port)WebListenerConfig(String id, int port, String protocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Gets the id used for configuring WebListener.intgetPort()Gets the port number used for configuring WebListener.StringgetProtocol()Gets the protocol used for configuring WebListener.booleanisTraceEnabled()Checks if support for TRACE requests is enabled.voidsetId(String id)Sets the id used for configuring WebListener.voidsetPort(int port)Sets the port number used for configuring WebListener.voidsetProtocol(String protocol)Sets the protocol used for configuring WebListener.voidsetTraceEnabled(boolean traceEnabled)Enables or disables support for TRACE requests.
-
-
-
Method Detail
-
setId
public void setId(String id)
Sets the id used for configuring WebListener.
-
getId
public String getId()
Gets the id used for configuring WebListener.
-
setPort
public void setPort(int port)
Sets the port number used for configuring WebListener.
-
getPort
public int getPort()
Gets the port number used for configuring WebListener.
-
setProtocol
public void setProtocol(String protocol)
Sets the protocol used for configuring WebListener.
-
getProtocol
public String getProtocol()
Gets the protocol used for configuring WebListener.
-
setTraceEnabled
public void setTraceEnabled(boolean traceEnabled)
Enables or disables support for TRACE requests.- Parameters:
traceEnabled- true if support for TRACE requests is to be enabled, false otherwise
-
isTraceEnabled
public boolean isTraceEnabled()
Checks if support for TRACE requests is enabled.- Returns:
- true if support for TRACE requests is enabled, false otherwise
-
-