Class BaseRequest

    • Constructor Detail

      • BaseRequest

        protected BaseRequest()
    • Method Detail

      • getContentType

        public java.lang.String getContentType()
      • setContentType

        public void setContentType​(java.lang.String contentType)
      • getMediaType

        public java.lang.String getMediaType()
      • setMediaType

        public void setMediaType​(java.lang.String mediaType)
      • getAuthUsername

        public java.lang.String getAuthUsername()
      • setAuthUsername

        public void setAuthUsername​(java.lang.String authUsername)
      • getAuthPassword

        public java.lang.String getAuthPassword()
      • setAuthPassword

        public void setAuthPassword​(java.lang.String authPassword)
      • getAuthenticationMethod

        public io.jans.as.model.common.AuthenticationMethod getAuthenticationMethod()
      • setAuthenticationMethod

        public void setAuthenticationMethod​(io.jans.as.model.common.AuthenticationMethod authenticationMethod)
      • getAuthorizationMethod

        public io.jans.as.model.common.AuthorizationMethod getAuthorizationMethod()
      • setAuthorizationMethod

        public void setAuthorizationMethod​(io.jans.as.model.common.AuthorizationMethod authorizationMethod)
      • getCustomParameters

        public java.util.Map<java.lang.String,​java.lang.String> getCustomParameters()
      • addCustomParameter

        public void addCustomParameter​(java.lang.String paramName,
                                       java.lang.String paramValue)
      • hasCredentials

        public boolean hasCredentials()
      • getCredentials

        public java.lang.String getCredentials()
                                        throws java.io.UnsupportedEncodingException
        Returns the client credentials (URL encoded).
        Returns:
        The client credentials.
        Throws:
        java.io.UnsupportedEncodingException
      • getEncodedCredentials

        public java.lang.String getEncodedCredentials()
        Returns the client credentials encoded using base64.
        Returns:
        The encoded client credentials.
      • getEncodedCredentials

        public static java.lang.String getEncodedCredentials​(java.lang.String clientId,
                                                             java.lang.String clientSecret)
                                                      throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.String> getParameters()
      • getJSONParameters

        public org.json.JSONObject getJSONParameters()
                                              throws org.json.JSONException
        Throws:
        org.json.JSONException
      • getQueryString

        public abstract java.lang.String getQueryString()