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 String
getId()
Gets the id used for configuring WebListener.int
getPort()
Gets the port number used for configuring WebListener.String
getProtocol()
Gets the protocol used for configuring WebListener.boolean
isTraceEnabled()
Checks if support for TRACE requests is enabled.void
setId(String id)
Sets the id used for configuring WebListener.void
setPort(int port)
Sets the port number used for configuring WebListener.void
setProtocol(String protocol)
Sets the protocol used for configuring WebListener.void
setTraceEnabled(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
-
-