|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.method.WTAdapterImpl
Nested Class Summary | |
private class |
WTAdapterImpl.ContextManager
Inner class that keeps MethodContext instances alive between webjects. |
Field Summary | |
private static String |
DEFAULT_USER
|
private static String |
DELEGATE_FACTORY
|
private static String |
DELEGATE_TYPE
|
private static Method |
factoryMethod
|
private static Boolean |
initialized
|
private static WTAdapterImpl |
instance
Check the state of the current method context to determine whether a session is associated with it. |
private static Method |
invokeMethod
|
static String |
LOCALE_KEY
|
private static int |
MAX_SESSION_IDLE
|
private static String |
RESOURCE
|
static String |
SESSION_CONTAINER_KEY
|
static String |
SESSION_TRANSACTION_KEY
|
static String |
SESSION_USER_KEY
|
private static boolean |
VERBOSE
|
private static boolean |
VERBOSE_EXCEPTION
|
private static boolean |
VERBOSE_SESSION
|
private static boolean |
VERBOSE_WEBJECT
|
Constructor Summary | |
WTAdapterImpl()
|
Method Summary | |
static void |
checkSession(MethodContext context)
|
private String |
getUser(Webject webject,
Task task)
Returns a verified username, if any, from a specified webject and/or task object. |
void |
initialize(String serviceName,
com.infoengine.log.LogWriter log)
Initialize the adapter implementation class. |
void |
initialize(String serviceName,
Properties properties,
com.infoengine.log.LogWriter log)
|
private WTAdapterImpl.ContextManager |
newContextManager(MethodContext context)
|
IeRequest |
processRequest(Request request)
Process a request to execute a webject or a task. |
private IeRequest |
processTask(Task task)
Process a request to execute a task. |
private IeRequest |
processWebject(Task task,
Webject webject)
Process a request to execute a webject. |
void |
refreshProperties()
Refresh static System properties after a dynamic property update. |
Certificate |
retrieveCertificate(String owner)
Returns the certificate for a principal specified by name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String DELEGATE_FACTORY
private static final String DELEGATE_TYPE
public static final String LOCALE_KEY
public static final String SESSION_CONTAINER_KEY
public static final String SESSION_USER_KEY
public static final String SESSION_TRANSACTION_KEY
private static int MAX_SESSION_IDLE
private static boolean VERBOSE
private static boolean VERBOSE_EXCEPTION
private static boolean VERBOSE_SESSION
private static boolean VERBOSE_WEBJECT
private static String DEFAULT_USER
private static Method factoryMethod
private static Method invokeMethod
private static Boolean initialized
private static WTAdapterImpl instance
Constructor Detail |
public WTAdapterImpl()
Method Detail |
public void initialize(String serviceName, com.infoengine.log.LogWriter log)
IeProcessor
initialize
in interface IeProcessor
serviceName
- Logical name defined for this implementationlog
- file to write informational and debug messages.public void initialize(String serviceName, Properties properties, com.infoengine.log.LogWriter log)
public void refreshProperties()
refreshProperties
in interface PropertyListener
public IeRequest processRequest(Request request) throws IEException
processRequest
in interface IeProcessor
request
- The request object that conveys the webject or task
to be executed.
IEException
- if the request is not executed successfully.public static void checkSession(MethodContext context)
private WTAdapterImpl.ContextManager newContextManager(MethodContext context)
private IeRequest processTask(Task task) throws Exception
task
- The task object that contains the URI of the task
to be executed and the input groups associated with it.
IEException
- if anything goes wrong.
Exception
private IeRequest processWebject(Task task, Webject webject) throws Exception
task
- The task object that contains the webject to be executed
and the input groups associated with it.webject
- The webject itself.
IEException
- if anything goes wrong.
Exception
public Certificate retrieveCertificate(String owner) throws IEException
retrieveCertificate
in interface IeCertificateRetriever
owner
- The name of the principal.
SocketAccessException
- if the certificate can not be
retrieved successfully.
IEException
- if the certificate can not be retrieved.private String getUser(Webject webject, Task task) throws WTException
webject
- Webject possibly containing authentication infotask
- Task possibly containing signed auth-user info
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |