|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.http.util.EnsureHTTPS
public class EnsureHTTPS
This wrapper forces JAAS authentication to happen at client side: if "Authorization" header is missing it would return 401 code requesting one.
| Field Summary | |
|---|---|
protected ConnectionHandler |
handler
Wrapped handler |
static String |
LOCATION_RESPONSE_HEADER
|
protected org.slf4j.Logger |
logger
Logger |
protected int |
port
HTTPS port - default 443 |
| Constructor Summary | |
|---|---|
EnsureHTTPS()
Constructor |
|
EnsureHTTPS(ConnectionHandler handler)
Constructor |
|
| Method Summary | |
|---|---|
ConnectionHandler |
getHandler()
Returns wrapped handler |
int |
getPort()
Returns https port |
void |
handleConnection(Connection connection)
This method creates sets context path to be same as context path up to here plus this component's path. |
void |
setHandler(ConnectionHandler handler)
Sets wrapped handler |
void |
setPort(int port)
Sets https port |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
public static final String LOCATION_RESPONSE_HEADER
protected ConnectionHandler handler
protected int port
| Constructor Detail |
|---|
public EnsureHTTPS()
public EnsureHTTPS(ConnectionHandler handler)
| Method Detail |
|---|
public void handleConnection(Connection connection)
/"
- Specified by:
handleConnection in interface ConnectionHandler
- Parameters:
connection - socket connection
public ConnectionHandler getHandler()
public void setHandler(ConnectionHandler handler)
handler - wrapped handlerpublic int getPort()
public void setPort(int port)
port - https port
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||