Skip navigation links

Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-01


oracle.stellent.ridc
Class IdcContext

java.lang.Object
  extended by oracle.stellent.ridc.IdcContext


public class IdcContext
extends java.lang.Object

Holds user-specific information needed to execute a Content Server service.


Nested Class Summary
static class IdcContext.Cookie
          Represents a cookie value
static class IdcContext.HttpAuthScheme
          Http authentication schema
static class IdcContext.LoginForm
          Form information to allow login to clients with form-based authentication

 

Field Summary
static java.lang.String DEFAULT_ENCODING
          default encoding
static java.lang.String DEFAULT_USER
          default user ID
static IdcContext.LoginForm JAAS_FORM
          standard form configuration for an application server JAAS login
static IdcContext.LoginForm OAM_SSO_FORM
          standard form configuration for OAM SSO
static java.lang.String UCM_SESSION_ID
          default session ID cookie for UCM
static java.lang.String USER_AGENT
           

 

Constructor Summary
IdcContext()
           
IdcContext(java.lang.String user)
           
IdcContext(java.lang.String user, Credentials credentials)
           
IdcContext(java.lang.String user, java.lang.String password)
           

 

Method Summary
 void addCookie(IdcContext.Cookie cookie)
           
 void addHeader(java.lang.String name, java.lang.String value)
          Add a header to this request
 void clearCookies()
          Clear all cookies
 void clearHeaders()
          Clear the available headers
 IdcContext.HttpAuthScheme getAuthScheme()
           
 IdcContext.Cookie getCookie(java.lang.String name)
          Retrieve a cookie by name
 java.util.Set<java.lang.String> getCookieNames()
           
 Credentials getCredentials()
           
 java.lang.String getEncoding()
           
 java.lang.String getHeader(java.lang.String name)
          Retrieve the header value for the given name
 java.util.Set<java.lang.String> getHeaderNames()
           
 IdcContext.LoginForm getLoginForm()
           
 java.lang.String getSessionCookie()
          The name of the session cookie.
 java.lang.String getUser()
           
 java.lang.String getUserAgent()
           
 boolean hasCredentials()
           
 void setAuthScheme(IdcContext.HttpAuthScheme authScheme)
           
 void setCredentials(Credentials credentials)
          Set some credentials for this context.
 void setEncoding(java.lang.String encoding)
          Set the encoding to use
 void setLoginForm(IdcContext.LoginForm loginForm)
           
 void setSessionCookie(java.lang.String sessionCookie)
           
 void setUser(java.lang.String user)
          Set the user name for this context
 void setUserAgent(java.lang.String userAgent)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

USER_AGENT

public static final java.lang.String USER_AGENT
See Also:
Constant Field Values

UCM_SESSION_ID

public static final java.lang.String UCM_SESSION_ID
default session ID cookie for UCM
See Also:
Constant Field Values

DEFAULT_USER

public static final java.lang.String DEFAULT_USER
default user ID
See Also:
Constant Field Values

DEFAULT_ENCODING

public static final java.lang.String DEFAULT_ENCODING
default encoding
See Also:
Constant Field Values

JAAS_FORM

public static IdcContext.LoginForm JAAS_FORM
standard form configuration for an application server JAAS login

OAM_SSO_FORM

public static IdcContext.LoginForm OAM_SSO_FORM
standard form configuration for OAM SSO

Constructor Detail

IdcContext

public IdcContext()

IdcContext

public IdcContext(java.lang.String user)

IdcContext

public IdcContext(java.lang.String user,
                  java.lang.String password)

IdcContext

public IdcContext(java.lang.String user,
                  Credentials credentials)

Method Detail

getUser

public java.lang.String getUser()
Returns:
the user name

setUser

public void setUser(java.lang.String user)
Set the user name for this context
Parameters:
user - the user name

hasCredentials

public boolean hasCredentials()
Returns:
if the context object is associated with some credentials

getCredentials

public Credentials getCredentials()
Returns:
the credentials if available

setCredentials

public void setCredentials(Credentials credentials)
Set some credentials for this context.
Parameters:
credentials - the credentials

getEncoding

public java.lang.String getEncoding()
Returns:
the encoding to use for this context

setEncoding

public void setEncoding(java.lang.String encoding)
Set the encoding to use
Parameters:
encoding - the encoding

getUserAgent

public java.lang.String getUserAgent()
Returns:
the user-agent value that is sent with this context

setUserAgent

public void setUserAgent(java.lang.String userAgent)
Parameters:
userAgent - the user agent to use

getLoginForm

public IdcContext.LoginForm getLoginForm()
Returns:
the configured login form used for form-based authentication

setLoginForm

public void setLoginForm(IdcContext.LoginForm loginForm)

getAuthScheme

public IdcContext.HttpAuthScheme getAuthScheme()
Returns:
the authentication scheme to use

setAuthScheme

public void setAuthScheme(IdcContext.HttpAuthScheme authScheme)

getSessionCookie

public java.lang.String getSessionCookie()
The name of the session cookie. Some protocols utilize this value to track a specific cookie when sending requests to the Content Server.
Returns:
the name of the cookie which stores the session token

setSessionCookie

public void setSessionCookie(java.lang.String sessionCookie)

addHeader

public void addHeader(java.lang.String name,
                      java.lang.String value)
Add a header to this request
Parameters:
name - the header name
value - the header value

getHeader

public java.lang.String getHeader(java.lang.String name)
Retrieve the header value for the given name
Parameters:
name - the header name
Returns:
the value or null if not set

getHeaderNames

public java.util.Set<java.lang.String> getHeaderNames()
Returns:
a set of the header names

clearHeaders

public void clearHeaders()
Clear the available headers

addCookie

public void addCookie(IdcContext.Cookie cookie)
Parameters:
cookie - the cookie to send with each request

getCookie

public IdcContext.Cookie getCookie(java.lang.String name)
Retrieve a cookie by name
Parameters:
name - the cookie name
Returns:
the cookie or null if not found

getCookieNames

public java.util.Set<java.lang.String> getCookieNames()
Returns:
a set of the configured cookies

clearCookies

public void clearCookies()
Clear all cookies

Skip navigation links

Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-01


Copyright © 2008, 2010, Oracle and/or its affiliates. All rights reserved.