public class ResponseUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Long |
DELETE_SCHEDULED_WORKFLOW_ERROR |
static java.lang.Long |
GENERAL_UTILITY_ERROR |
static java.lang.Long |
GET_SCHEDULED_WORKFLOW_ERROR |
static java.lang.Long |
METACAT_UTILITY_ERROR |
static java.lang.Long |
NO_READ_PERMISSION |
static java.lang.Long |
PROPERTY_NOT_FOUND |
static java.lang.Long |
RESCHEDULE_WORKFLOW_ERROR |
static java.lang.Long |
SCHEDULE_WORKFLOW_ERROR |
static java.lang.Long |
UNSCHEDULE_WORKFLOW_ERROR |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isSuccessXML(java.lang.String message) |
static void |
redirectResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String destination)
Redirect a response.
|
static void |
send(javax.servlet.http.HttpServletResponse response,
java.lang.String content) |
static void |
sendErrorXML(javax.servlet.http.HttpServletResponse response,
java.lang.Long errorCode,
BaseException be) |
static void |
sendErrorXML(javax.servlet.http.HttpServletResponse response,
java.lang.Long errorCode,
java.lang.String message) |
static void |
sendSuccessXML(javax.servlet.http.HttpServletResponse response,
java.lang.String message) |
static void |
writeFileToOutput(javax.servlet.http.HttpServletResponse response,
java.lang.String fileDir,
java.lang.String fileName) |
static void |
writeFileToOutput(javax.servlet.http.HttpServletResponse response,
java.lang.String fileDir,
java.lang.String fileName,
int bufferSize) |
public static java.lang.Long GENERAL_UTILITY_ERROR
public static java.lang.Long METACAT_UTILITY_ERROR
public static java.lang.Long PROPERTY_NOT_FOUND
public static java.lang.Long NO_READ_PERMISSION
public static java.lang.Long SCHEDULE_WORKFLOW_ERROR
public static java.lang.Long UNSCHEDULE_WORKFLOW_ERROR
public static java.lang.Long RESCHEDULE_WORKFLOW_ERROR
public static java.lang.Long GET_SCHEDULED_WORKFLOW_ERROR
public static java.lang.Long DELETE_SCHEDULED_WORKFLOW_ERROR
public static void redirectResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String destination)
throws MetacatUtilException
response - that is to be redirecteddestination - the context-relative URL to which the request is forwardedMetacatUtilExceptionpublic static void writeFileToOutput(javax.servlet.http.HttpServletResponse response,
java.lang.String fileDir,
java.lang.String fileName)
throws MetacatUtilException
MetacatUtilExceptionpublic static void writeFileToOutput(javax.servlet.http.HttpServletResponse response,
java.lang.String fileDir,
java.lang.String fileName,
int bufferSize)
throws MetacatUtilException
MetacatUtilExceptionpublic static void send(javax.servlet.http.HttpServletResponse response,
java.lang.String content)
throws ErrorSendingErrorException
ErrorSendingErrorExceptionpublic static void sendErrorXML(javax.servlet.http.HttpServletResponse response,
java.lang.Long errorCode,
BaseException be)
throws ErrorSendingErrorException
ErrorSendingErrorExceptionpublic static void sendErrorXML(javax.servlet.http.HttpServletResponse response,
java.lang.Long errorCode,
java.lang.String message)
throws ErrorSendingErrorException
ErrorSendingErrorExceptionpublic static void sendSuccessXML(javax.servlet.http.HttpServletResponse response,
java.lang.String message)
throws ErrorSendingErrorException
ErrorSendingErrorExceptionpublic static boolean isSuccessXML(java.lang.String message)
Copyright © 2020 Regents of the University of California. All Rights Reserved.