public class IncomingRequestAddressStrategy extends Object implements IServerAddressStrategy
| Constructor and Description |
|---|
IncomingRequestAddressStrategy() |
| Modifier and Type | Method and Description |
|---|---|
String |
determineServerBase(javax.servlet.ServletContext theServletContext,
javax.servlet.http.HttpServletRequest theRequest)
Determine the server base for a given request
|
static String |
determineServletContextPath(javax.servlet.http.HttpServletRequest theRequest,
RestfulServer server)
Determines the servlet's context path.
|
void |
setServletPath(String theServletPath)
If set to a non-null value (default is
null), this address strategy assumes that the FHIR endpoint is deployed to the given servlet path within the context. |
public IncomingRequestAddressStrategy()
public String determineServerBase(javax.servlet.ServletContext theServletContext, javax.servlet.http.HttpServletRequest theRequest)
IServerAddressStrategydetermineServerBase in interface IServerAddressStrategypublic void setServletPath(String theServletPath)
null), this address strategy assumes that the FHIR endpoint is deployed to the given servlet path within the context. This is useful in some
deployments where it isn't obvious to the servlet which part of the path is actually the root path to reach the servlet.
Example values could be:
Wildcards are not supported!
public static String determineServletContextPath(javax.servlet.http.HttpServletRequest theRequest, RestfulServer server)
Copyright © 2014–2016 University Health Network. All rights reserved.