Add some debug statements
This commit is contained in:
@@ -21,16 +21,24 @@
|
|||||||
package io.kamax.mxisd.controller.v1
|
package io.kamax.mxisd.controller.v1
|
||||||
|
|
||||||
import io.kamax.mxisd.exception.NotImplementedException
|
import io.kamax.mxisd.exception.NotImplementedException
|
||||||
|
import org.slf4j.Logger
|
||||||
|
import org.slf4j.LoggerFactory
|
||||||
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RequestMapping
|
||||||
import org.springframework.web.bind.annotation.RestController
|
import org.springframework.web.bind.annotation.RestController
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest
|
||||||
|
|
||||||
import static org.springframework.web.bind.annotation.RequestMethod.POST
|
import static org.springframework.web.bind.annotation.RequestMethod.POST
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
class InvitationController {
|
class InvitationController {
|
||||||
|
|
||||||
|
private Logger log = LoggerFactory.getLogger(InvitationController.class)
|
||||||
|
|
||||||
@RequestMapping(value = "/_matrix/identity/api/v1/store-invite", method = POST)
|
@RequestMapping(value = "/_matrix/identity/api/v1/store-invite", method = POST)
|
||||||
String store() {
|
String store(HttpServletRequest request) {
|
||||||
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
||||||
|
|
||||||
throw new NotImplementedException()
|
throw new NotImplementedException()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,16 +24,22 @@ import groovy.json.JsonOutput
|
|||||||
import io.kamax.mxisd.exception.BadRequestException
|
import io.kamax.mxisd.exception.BadRequestException
|
||||||
import io.kamax.mxisd.exception.NotImplementedException
|
import io.kamax.mxisd.exception.NotImplementedException
|
||||||
import io.kamax.mxisd.key.KeyManager
|
import io.kamax.mxisd.key.KeyManager
|
||||||
|
import org.slf4j.Logger
|
||||||
|
import org.slf4j.LoggerFactory
|
||||||
import org.springframework.beans.factory.annotation.Autowired
|
import org.springframework.beans.factory.annotation.Autowired
|
||||||
import org.springframework.web.bind.annotation.PathVariable
|
import org.springframework.web.bind.annotation.PathVariable
|
||||||
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RequestMapping
|
||||||
import org.springframework.web.bind.annotation.RestController
|
import org.springframework.web.bind.annotation.RestController
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest
|
||||||
|
|
||||||
import static org.springframework.web.bind.annotation.RequestMethod.GET
|
import static org.springframework.web.bind.annotation.RequestMethod.GET
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
class KeyController {
|
class KeyController {
|
||||||
|
|
||||||
|
private Logger log = LoggerFactory.getLogger(KeyController.class)
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private KeyManager keyMgr
|
private KeyManager keyMgr
|
||||||
|
|
||||||
@@ -49,12 +55,16 @@ class KeyController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/_matrix/identity/api/v1/pubkey/ephemeral/isvalid", method = GET)
|
@RequestMapping(value = "/_matrix/identity/api/v1/pubkey/ephemeral/isvalid", method = GET)
|
||||||
String checkEphemeralKeyValidity() {
|
String checkEphemeralKeyValidity(HttpServletRequest request) {
|
||||||
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
||||||
|
|
||||||
throw new NotImplementedException()
|
throw new NotImplementedException()
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/_matrix/identity/api/v1/pubkey/isvalid", method = GET)
|
@RequestMapping(value = "/_matrix/identity/api/v1/pubkey/isvalid", method = GET)
|
||||||
String checkKeyValidity() {
|
String checkKeyValidity(HttpServletRequest request) {
|
||||||
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
||||||
|
|
||||||
throw new NotImplementedException()
|
throw new NotImplementedException()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,32 +21,46 @@
|
|||||||
package io.kamax.mxisd.controller.v1
|
package io.kamax.mxisd.controller.v1
|
||||||
|
|
||||||
import io.kamax.mxisd.exception.NotImplementedException
|
import io.kamax.mxisd.exception.NotImplementedException
|
||||||
|
import org.slf4j.Logger
|
||||||
|
import org.slf4j.LoggerFactory
|
||||||
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RequestMapping
|
||||||
import org.springframework.web.bind.annotation.RestController
|
import org.springframework.web.bind.annotation.RestController
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest
|
||||||
|
|
||||||
import static org.springframework.web.bind.annotation.RequestMethod.GET
|
import static org.springframework.web.bind.annotation.RequestMethod.GET
|
||||||
import static org.springframework.web.bind.annotation.RequestMethod.POST
|
import static org.springframework.web.bind.annotation.RequestMethod.POST
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
class SessionController {
|
class SessionController {
|
||||||
|
|
||||||
|
private Logger log = LoggerFactory.getLogger(SessionController.class)
|
||||||
|
|
||||||
@RequestMapping(value = "/_matrix/identity/api/v1/validate/email/requestToken", method = POST)
|
@RequestMapping(value = "/_matrix/identity/api/v1/validate/email/requestToken", method = POST)
|
||||||
String init() {
|
String init(HttpServletRequest request) {
|
||||||
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
||||||
|
|
||||||
throw new NotImplementedException()
|
throw new NotImplementedException()
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/_matrix/identity/api/v1/validate/email/submitToken", method = [GET, POST])
|
@RequestMapping(value = "/_matrix/identity/api/v1/validate/email/submitToken", method = [GET, POST])
|
||||||
String validate() {
|
String validate(HttpServletRequest request) {
|
||||||
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
||||||
|
|
||||||
throw new NotImplementedException()
|
throw new NotImplementedException()
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/_matrix/identity/api/v1/3pid/getValidated3pid", method = POST)
|
@RequestMapping(value = "/_matrix/identity/api/v1/3pid/getValidated3pid", method = POST)
|
||||||
String check() {
|
String check(HttpServletRequest request) {
|
||||||
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
||||||
|
|
||||||
throw new NotImplementedException()
|
throw new NotImplementedException()
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/_matrix/identity/api/v1/3pid/bind", method = POST)
|
@RequestMapping(value = "/_matrix/identity/api/v1/3pid/bind", method = POST)
|
||||||
String bind() {
|
String bind(HttpServletRequest request) {
|
||||||
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
||||||
|
|
||||||
throw new NotImplementedException()
|
throw new NotImplementedException()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user