Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
35d7c85b
Kaydet (Commit)
35d7c85b
authored
Tem 05, 2002
tarafından
Bertram Nolte
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#100870#
üst
f3003c3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
ConverterServlet.java
odk/examples/java/ConverterServlet/ConverterServlet.java
+11
-3
No files found.
odk/examples/java/ConverterServlet/ConverterServlet.java
Dosyayı görüntüle @
35d7c85b
...
...
@@ -35,9 +35,17 @@ import com.sun.star.lang.XMultiComponentFactory;
* to the client.
*/
public
class
ConverterServlet
extends
HttpServlet
{
/** Specifies the
working
directory on the web server.
/** Specifies the
temporary
directory on the web server.
*/
private
String
stringWorkingDirectory
=
"g:/trash/"
;
private
String
stringWorkingDirectory
=
System
.
getProperty
(
"java.io.tmpdir"
);
/** Specifies the host for the office server.
*/
private
String
stringHost
=
"localhost"
;
/** Specifies the port for the office server.
*/
private
String
stringPort
=
"8200"
;
/** Called by the server (via the service method) to allow a servlet to handle
* a POST request. The file from the client will be uploaded to the web server
...
...
@@ -151,7 +159,7 @@ public class ConverterServlet extends HttpServlet {
// Resolves an object that is specified as follow:
// uno:<connection description>;<protocol description>;<initial object name>
Object
objectInitial
=
xurlresolver
.
resolve
(
"uno:socket,host=
localhost,port=8200
;urp;StarOffice.ServiceManager"
);
"uno:socket,host=
"
+
stringHost
+
",port="
+
stringPort
+
"
;urp;StarOffice.ServiceManager"
);
// Create a service manager from the initial object
xmulticomponentfactory
=
(
XMultiComponentFactory
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment