|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.connector.PhysicalConnection
com.infoengine.connector.HTTPConnection
represents an HTTP physical connection to an Info*Engine SOAP service
Field Summary | |
(package private) javax.xml.soap.SOAPConnection |
connection
|
static String |
CONNECTION_URL
|
protected IeConnectionRequestInfo |
cxRequestInfo
|
(package private) URL |
endPoint
|
private URL |
httpURL
|
protected Log |
log
|
protected IeManagedConnection |
managedCx
|
protected Subject |
subject
|
private static char[] |
toHex
|
Constructor Summary | |
(package private) |
HTTPConnection()
create a new HTTPConnection |
Method Summary | |
(package private) void |
destroy()
fulfills interface requirement. |
private static String |
escape(String s)
assumes that no characters have already been escaped (i.e. |
protected String[] |
extractCredentials()
|
(package private) IeConnectionRequestInfo |
getRequestInfo()
|
(package private) void |
init()
initialize the HTTPConnection userName and password information found in cxReqInfo takes precendence over credentials contained in s. |
(package private) javax.xml.soap.SOAPMessage |
invoke(javax.xml.soap.SOAPMessage msg)
jaxm implementation send the SOAPMessage to our configured endPoint and return the response. |
private static boolean |
isAlpha(char c)
|
private static boolean |
isAlphanum(char c)
|
private static boolean |
isDigit(char c)
|
private static boolean |
isMark(char c)
|
private static boolean |
isSafe(char c)
|
private static boolean |
isUnreserved(char c)
|
(package private) boolean |
match(Subject s,
javax.resource.spi.ConnectionRequestInfo cri)
does this connection match these criteria |
(package private) void |
setLog(Log l)
|
(package private) void |
setManagedConnection(IeManagedConnection managed)
|
(package private) void |
setRequestInfo(IeConnectionRequestInfo info)
|
(package private) void |
setSubject(Subject s)
|
protected Throwable |
unwrapSOAPException(javax.xml.soap.SOAPException soapE)
extract root exception |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CONNECTION_URL
private URL httpURL
javax.xml.soap.SOAPConnection connection
URL endPoint
private static final char[] toHex
protected IeManagedConnection managedCx
protected Subject subject
protected IeConnectionRequestInfo cxRequestInfo
protected Log log
Constructor Detail |
HTTPConnection()
Method Detail |
void init() throws javax.resource.ResourceException
init
in class PhysicalConnection
javax.resource.ResourceException
javax.xml.soap.SOAPMessage invoke(javax.xml.soap.SOAPMessage msg) throws Exception
invoke
in class PhysicalConnection
msg
- the SOAPMessage to send
Exception
void destroy() throws Exception
destroy
in class PhysicalConnection
Exception
private static String escape(String s)
private static boolean isSafe(char c)
private static boolean isUnreserved(char c)
private static boolean isAlphanum(char c)
private static boolean isAlpha(char c)
private static boolean isDigit(char c)
private static boolean isMark(char c)
void setManagedConnection(IeManagedConnection managed)
managed
- IeManagedConnection instancevoid setSubject(Subject s)
s
- security credentialsvoid setLog(Log l)
l
- Logvoid setRequestInfo(IeConnectionRequestInfo info)
info
- connection request infoIeConnectionRequestInfo getRequestInfo()
boolean match(Subject s, javax.resource.spi.ConnectionRequestInfo cri) throws PrivilegedActionException
s
- security credentialscri
- connection request info
PrivilegedActionException
protected Throwable unwrapSOAPException(javax.xml.soap.SOAPException soapE)
soapE
- SOAPException to unwrap
protected String[] extractCredentials() throws PrivilegedActionException
PrivilegedActionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |