|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PageBoxLib.HTTPQuerier
Web service invoker for raw HTTP.
Changes:
alexis.grandemange@pagebox.net
Copyright (c) 2002-2004 Alexis Grandemange
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License lesser.txt should be included in the distribution.
Field Summary | |
private Log |
log
Logging object |
(package private) java.lang.String |
up
Web service encoded user and password |
(package private) java.lang.String |
url
Web service URI |
Constructor Summary | |
HTTPQuerier()
|
Method Summary | |
private java.net.HttpURLConnection |
connect()
Set up a HTTP connection. |
DeployIF.Status |
frameSend(TokenFrame frame)
TokenIF method. |
AuthSub[] |
GetSubscribers(java.lang.String archive)
Query API. |
void |
Notify(java.lang.String archive,
UrlStatus[] subscribers)
Called by relay to notify the success or failure of a deployment. |
void |
NotifyFix(java.lang.String subscriber,
FixArch[] archives)
Called by Reinstall to change the archive status from PageBox err to installed. |
void |
setUrl(java.lang.String url,
java.lang.String user,
java.lang.String passwd,
Log log)
Set the Web service URI. |
void |
tokenRegister(java.lang.String subscriber)
Token management method. |
void |
tokenUnregister(java.lang.String subscriber)
Token management method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String url
java.lang.String up
private Log log
Constructor Detail |
public HTTPQuerier()
Method Detail |
public void setUrl(java.lang.String url, java.lang.String user, java.lang.String passwd, Log log)
setUrl
in interface QuerierIF
url
- Web service URIuser
- Web service account IDpasswd
- Web service account passwordlog
- logging objectPageBoxLib.QuerierIF#setUrl(String, String, String)
public AuthSub[] GetSubscribers(java.lang.String archive) throws java.rmi.RemoteException
archive
- archive name
java.rmi.RemoteException
Repository.RepoQueryIF#GetSubscribers(String)
private java.net.HttpURLConnection connect() throws java.lang.Exception
java.lang.Exception
public void Notify(java.lang.String archive, UrlStatus[] subscribers) throws java.rmi.RemoteException
archive
- archive name
java.rmi.RemoteException
Repository.RepoQueryIF#Notify(String, UrlStatus[])
public void NotifyFix(java.lang.String subscriber, FixArch[] archives) throws java.rmi.RemoteException
subscriber
- PageBox whose setting pb was fixedarchives
- whose pb was fixed
java.rmi.RemoteException
Repository.RepoQueryIF#NotifyFix(String, FixArch[])
public DeployIF.Status frameSend(TokenFrame frame) throws java.rmi.RemoteException
frame
- sent frame
java.rmi.RemoteException
public void tokenRegister(java.lang.String subscriber) throws java.rmi.RemoteException
subscriber
- PageBox whose setting pb was fixed
java.rmi.RemoteException
public void tokenUnregister(java.lang.String subscriber) throws java.rmi.RemoteException
subscriber
- PageBox whose setting pb was fixed
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |