jp.go.nict.langrid.commons.ws.util
クラス LangridHttpUtil

java.lang.Object
  上位を拡張 jp.go.nict.langrid.commons.ws.util.LangridHttpUtil

public class LangridHttpUtil
extends Object

HTTP関連のユーティリティ。

作成者:
Takao Nakaguchi

コンストラクタの概要
LangridHttpUtil()
           
 
メソッドの概要
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)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LangridHttpUtil

public LangridHttpUtil()
メソッドの詳細

setFederatedCallHeaders

public static void setFederatedCallHeaders(HttpURLConnection con,
                                           String sourceGridId,
                                           String callerUserGridId,
                                           String callerUserId)

write403_ServiceNotActive

public static void write403_ServiceNotActive(javax.servlet.http.HttpServletResponse response,
                                             String gridId,
                                             String serviceId)
                                      throws IOException
例外:
IOException

write403_AccessLimitExceeded

public static void write403_AccessLimitExceeded(javax.servlet.http.HttpServletResponse response,
                                                String gridId,
                                                String serviceId)
                                         throws IOException
例外:
IOException

write403_AccessLimitExceeded

public static void write403_AccessLimitExceeded(javax.servlet.http.HttpServletResponse response,
                                                String gridId,
                                                String serviceId,
                                                String message)
                                         throws IOException
例外:
IOException

write403_NoAccessPermission

public static void write403_NoAccessPermission(javax.servlet.http.HttpServletResponse response,
                                               String gridId,
                                               String serviceId)
                                        throws IOException
例外:
IOException

write403_TooManyCallNest

public static void write403_TooManyCallNest(javax.servlet.http.HttpServletResponse response,
                                            String gridId,
                                            String serviceId,
                                            int threashold,
                                            int actualNest)
                                     throws IOException
例外:
IOException

write403_FederationNotFound

public static void write403_FederationNotFound(javax.servlet.http.HttpServletResponse response,
                                               String sourceGridId,
                                               String targetGridId)
                                        throws IOException
例外:
IOException

write404_ServiceNotFound

public static void write404_ServiceNotFound(javax.servlet.http.HttpServletResponse response,
                                            String gridId,
                                            String serviceId)
                                     throws IOException
例外:
IOException

write500_InternalServerError

public static void write500_InternalServerError(javax.servlet.http.HttpServletResponse response,
                                                String gridId,
                                                String serviceId)
                                         throws IOException
例外:
IOException

write500_Exception

public static void write500_Exception(javax.servlet.http.HttpServletResponse response,
                                      String gridId,
                                      String serviceId,
                                      Throwable exception)
                               throws IOException
例外:
IOException

write403

public static void write403(javax.servlet.http.HttpServletResponse response,
                            String exceptionMessage)
                     throws IOException
例外:
IOException

write404

public static void write404(javax.servlet.http.HttpServletResponse response,
                            String exceptionMessage)
                     throws IOException
例外:
IOException

write500

public static void write500(javax.servlet.http.HttpServletResponse response,
                            String exceptionMessage)
                     throws IOException
例外:
IOException

write500

public static void write500(javax.servlet.http.HttpServletResponse response,
                            String exceptionMessage,
                            Throwable exception)
                     throws IOException
例外:
IOException