You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in the mailing list[1] a suggestion on how to extend the current api to expose information about the underlying connectors/sockets.
This is just the first idea that came into my head. Please suggest better ideas if you can think of any. Since I was just targeting to expose something like the https port to the application, I did't thought of better changes.
public interface ServletContext {
// existing members
public Set getConnectors();
}
public interface ServletConnector{
public int getPort();
public String getProtocol();
public boolean isSecure();
}
As discussed in the mailing list[1] a suggestion on how to extend the current api to expose information about the underlying connectors/sockets.
This is just the first idea that came into my head. Please suggest better ideas if you can think of any. Since I was just targeting to expose something like the https port to the application, I did't thought of better changes.
public interface ServletContext {
// existing members
public Set getConnectors();
}
public interface ServletConnector{
public int getPort();
public String getProtocol();
public boolean isSecure();
}
[1] http://java.net/projects/servlet-spec/lists/users/archive/2012-08/message/7
The text was updated successfully, but these errors were encountered: