Class ServletUtilities
java.lang.Object
it.uniroma2.art.semanticturkey.servlet.ServletUtilities
- Author:
- Donato Griesi Contributor(s): Andrea Turbati
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateErrorResponse(String request, Exception ex, String msg, ServiceVocabulary.SerializationType ser_type, ErrorReportingSettings errorReportingSettings) produces an xml document telling the client that some error has occurredcreateErrorResponse(String request, Exception ex, String msg, ErrorReportingSettings errorReportingSettings) createExceptionResponse(String request, Exception ex, String msg, ServiceVocabulary.SerializationType ser_type, ErrorReportingSettings errorReportingSettings) produces a response (xml,json) telling the client that some exception has occurredcreateExceptionResponse(String request, Exception ex, String msg, ErrorReportingSettings errorReportingSettings) createNoSuchHandlerExceptionResponse(String request, ServiceVocabulary.SerializationType ser_type) createReplyResponse(String request, ServiceVocabulary.RepliesStatus status, ServiceVocabulary.SerializationType ser_type) static ServletUtilities
-
Field Details
-
logger
protected static org.slf4j.Logger logger -
ontAccessProblem
- See Also:
-
-
Constructor Details
-
ServletUtilities
public ServletUtilities()
-
-
Method Details
-
getService
-
createReplyResponse
public ResponseREPLY createReplyResponse(String request, ServiceVocabulary.RepliesStatus status, ServiceVocabulary.SerializationType ser_type) -
createExceptionResponse
public JSONResponseEXCEPTION createExceptionResponse(String request, Exception ex, String msg, @Nullable ErrorReportingSettings errorReportingSettings) -
createExceptionResponse
public ResponseProblem createExceptionResponse(String request, Exception ex, String msg, ServiceVocabulary.SerializationType ser_type, @Nullable ErrorReportingSettings errorReportingSettings) produces a response (xml,json) telling the client that some exception has occurred- Parameters:
value-- Returns:
- Throws:
org.json.JSONException
-
createErrorResponse
public ResponseProblem createErrorResponse(String request, Exception ex, String msg, ServiceVocabulary.SerializationType ser_type, @Nullable ErrorReportingSettings errorReportingSettings) produces an xml document telling the client that some error has occurred- Parameters:
value-errorReportingSettings-- Returns:
- Throws:
org.json.JSONException
-
createErrorResponse
public JSONResponseERROR createErrorResponse(String request, Exception ex, String msg, @Nullable ErrorReportingSettings errorReportingSettings) -
createNoSuchHandlerExceptionResponse
public ResponseProblem createNoSuchHandlerExceptionResponse(String request, ServiceVocabulary.SerializationType ser_type)
-