public class LangridHttpUtil extends Object
| Constructor and Description |
|---|
LangridHttpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setFederatedCallHeaders(HttpURLConnection con,
String sourceGridId,
String callerUserGridId,
String callerUserId) |
static void |
write403_AccessLimitExceeded(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId) |
static void |
write403_AccessLimitExceeded(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId,
String message) |
static void |
write403_FederationNotFound(javax.servlet.http.HttpServletResponse response,
String sourceGridId,
String targetGridId) |
static void |
write403_NoAccessPermission(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId) |
static void |
write403_ServiceNotActive(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId) |
static void |
write403_TooManyCallNest(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId,
int threashold,
int actualNest) |
static void |
write403(javax.servlet.http.HttpServletResponse response,
String exceptionMessage) |
static void |
write404_ServiceNotFound(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId) |
static void |
write404(javax.servlet.http.HttpServletResponse response,
String exceptionMessage) |
static void |
write500_Exception(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId,
Throwable exception) |
static void |
write500_InternalServerError(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId) |
static void |
write500(javax.servlet.http.HttpServletResponse response,
String exceptionMessage) |
static void |
write500(javax.servlet.http.HttpServletResponse response,
String exceptionMessage,
Throwable exception) |
public static void setFederatedCallHeaders(HttpURLConnection con, String sourceGridId, String callerUserGridId, String callerUserId)
public static void write403_ServiceNotActive(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId)
throws IOException
IOExceptionpublic static void write403_AccessLimitExceeded(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId)
throws IOException
IOExceptionpublic static void write403_AccessLimitExceeded(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId,
String message)
throws IOException
IOExceptionpublic static void write403_NoAccessPermission(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId)
throws IOException
IOExceptionpublic static void write403_TooManyCallNest(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId,
int threashold,
int actualNest)
throws IOException
IOExceptionpublic static void write403_FederationNotFound(javax.servlet.http.HttpServletResponse response,
String sourceGridId,
String targetGridId)
throws IOException
IOExceptionpublic static void write404_ServiceNotFound(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId)
throws IOException
IOExceptionpublic static void write500_InternalServerError(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId)
throws IOException
IOExceptionpublic static void write500_Exception(javax.servlet.http.HttpServletResponse response,
String gridId,
String serviceId,
Throwable exception)
throws IOException
IOExceptionpublic static void write403(javax.servlet.http.HttpServletResponse response,
String exceptionMessage)
throws IOException
IOExceptionpublic static void write404(javax.servlet.http.HttpServletResponse response,
String exceptionMessage)
throws IOException
IOExceptionpublic static void write500(javax.servlet.http.HttpServletResponse response,
String exceptionMessage)
throws IOException
IOExceptionpublic static void write500(javax.servlet.http.HttpServletResponse response,
String exceptionMessage,
Throwable exception)
throws IOException
IOException