Package org.opencastproject.lti
Class LtiServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opencastproject.lti.LtiServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class LtiServlet
extends javax.servlet.http.HttpServlet
A servlet to accept an LTI login via POST. The actual authentication happens in LtiProcessingFilter. GET requests
produce JSON containing the LTI parameters passed during LTI launch.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringThe key used to store the LTI attributes in the HTTP sessionstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specificationstatic final StringSee the LTI specification -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) protected voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) getLtiValuesAsMap(javax.servlet.http.HttpServletRequest req) Builds a map of LTI parametersMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
SESSION_ATTRIBUTE_KEY
The key used to store the LTI attributes in the HTTP session- See Also:
-
LTI_MESSAGE_TYPE
See the LTI specification- See Also:
-
LTI_VERSION
See the LTI specification- See Also:
-
RESOURCE_LINK_ID
See the LTI specification- See Also:
-
RESOURCE_LINK_TITLE
See the LTI specification- See Also:
-
RESOURCE_LINK_DESCRIPTION
See the LTI specification- See Also:
-
USER_ID
See the LTI specification- See Also:
-
USER_IMAGE
See the LTI specification- See Also:
-
ROLES
See the LTI specification- See Also:
-
GIVEN_NAME
See the LTI specification- See Also:
-
FAMILY_NAME
See the LTI specification- See Also:
-
FULL_NAME
See the LTI specification- See Also:
-
EMAIL
See the LTI specification- See Also:
-
CONTEXT_ID
See the LTI specification- See Also:
-
CONTEXT_TYPE
See the LTI specification- See Also:
-
CONTEXT_TITLE
See the LTI specification- See Also:
-
CONTEXT_LABEL
See the LTI specification- See Also:
-
LOCALE
See the LTI specification- See Also:
-
TARGET
See the LTI specification- See Also:
-
WIDTH
See the LTI specification- See Also:
-
HEIGHT
See the LTI specification- See Also:
-
RETURN_URL
See the LTI specification- See Also:
-
CONSUMER_GUID
See the LTI specification- See Also:
-
CONSUMER_NAME
See the LTI specification- See Also:
-
CONSUMER_DESCRIPTION
See the LTI specification- See Also:
-
CONSUMER_URL
See the LTI specification- See Also:
-
CONSUMER_CONTACT
See the LTI specification- See Also:
-
COURSE_OFFERING
See the LTI specification- See Also:
-
COURSE_SECTION
See the LTI specification- See Also:
-
LTI_CONSTANTS
-
-
Constructor Details
-
LtiServlet
public LtiServlet()
-
-
Method Details
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException- See Also:
-
getLtiValuesAsMap
Builds a map of LTI parameters- Parameters:
req- the LTI Launch HttpServletRequest- Returns:
- the map of LTI parameters to the values for this launch
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException- See Also:
-