@Controller(value="diagnosticControllerV2") public class DiagnosticController extends AbstractServiceController implements org.springframework.web.context.ServletContextAware
FRAGMENT_REQUEST_PARAM_KEY, SCHEME_REQUEST_PARAM_KEY| Constructor and Description |
|---|
DiagnosticController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
echoCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Echo the credentials used to make the call.
|
void |
echoIndexedObject(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest,
javax.servlet.http.HttpServletResponse response)
Parse and echo the provided science metadata or resource map document.
|
org.springframework.web.servlet.ModelAndView |
echoSystemMetadata(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest,
javax.servlet.http.HttpServletResponse response)
Parse and echo the provided system metadata
On successful parsing, a copy of the system metadata is returned,
otherwise an exception is returned indicating an error condition.
|
void |
setServletContext(javax.servlet.ServletContext sc) |
debugRequest, extractPidFromRequestParam, extractPidFromRequestURI, extractSubjectFromRequestParam, extractValueFromRequestParam, handleBaseException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException@RequestMapping(value={"/v2/diag/sysmeta","/v2/diag/sysmeta/"},
method=POST)
public org.springframework.web.servlet.ModelAndView echoSystemMetadata(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest,
javax.servlet.http.HttpServletResponse response)
throws org.dataone.service.exceptions.ServiceFailure,
org.dataone.service.exceptions.NotImplemented,
org.dataone.service.exceptions.InvalidToken,
org.dataone.service.exceptions.NotAuthorized,
org.dataone.service.exceptions.InvalidRequest,
org.dataone.service.exceptions.InvalidSystemMetadata,
org.dataone.service.exceptions.IdentifierNotUnique
fileRequest - response - org.dataone.service.exceptions.ServiceFailureorg.dataone.service.exceptions.NotImplementedorg.dataone.service.exceptions.InvalidTokenorg.dataone.service.exceptions.NotAuthorizedorg.dataone.service.exceptions.InvalidRequestorg.dataone.service.exceptions.InvalidSystemMetadataorg.dataone.service.exceptions.IdentifierNotUnique@RequestMapping(value={"/v2/diag/subject","/v2/diag/subject/"},
method=GET)
public org.springframework.web.servlet.ModelAndView echoCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws org.dataone.service.exceptions.ServiceFailure,
org.dataone.service.exceptions.InvalidToken,
org.dataone.service.exceptions.NotImplemented
request - response - org.dataone.service.exceptions.ServiceFailureorg.dataone.service.exceptions.InvalidTokenorg.dataone.service.exceptions.NotImplemented@RequestMapping(value={"/v2/diag/object","/v2/diag/object/"},
method=POST)
public void echoIndexedObject(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest,
javax.servlet.http.HttpServletResponse response)
throws org.dataone.service.exceptions.ServiceFailure,
org.dataone.service.exceptions.NotImplemented,
org.dataone.service.exceptions.InvalidToken,
org.dataone.service.exceptions.NotAuthorized,
org.dataone.service.exceptions.InvalidRequest,
org.dataone.service.exceptions.InvalidSystemMetadata,
org.dataone.service.exceptions.IdentifierNotUnique
fileRequest - response - org.dataone.service.exceptions.ServiceFailureorg.dataone.service.exceptions.NotImplementedorg.dataone.service.exceptions.InvalidTokenorg.dataone.service.exceptions.NotAuthorizedorg.dataone.service.exceptions.InvalidRequestorg.dataone.service.exceptions.InvalidSystemMetadataorg.dataone.service.exceptions.IdentifierNotUniquepublic void setServletContext(javax.servlet.ServletContext sc)
setServletContext in interface org.springframework.web.context.ServletContextAwareCopyright © 2022. All rights reserved.