Project

General

Profile

« Previous | Next » 

Revision 4296

Added by daigle over 15 years ago

add session id to parameters

View differences:

src/edu/ucsb/nceas/metacat/client/MetacatClient.java
61 61
    private String sessionId;
62 62
    
63 63
    /**
64
     * The Login cookie name.
65
     */
66
    public final static String                    LOGIN_COOOKIE = "cookie";
67
    
68
    /**
69 64
     * Constructor to create a new instance. Protected because instances
70 65
     * should only be created by the factory MetacatFactory.
71 66
     */
......
338 333
     * @throws IOException when there is an error reading the xml document
339 334
     */
340 335
    public String insert(String docid, Reader xmlDocument, Reader schema)
341
    throws InsufficientKarmaException, MetacatException, IOException,
336
    	throws InsufficientKarmaException, MetacatException, IOException,
342 337
            MetacatInaccessibleException {
338

  
343 339
        Reader reader = null;
344 340
        String doctext = null;
345 341
        String schematext = null;
......
360 356
        if (schematext != null) {
361 357
            prop.put("dtdtext", schematext);
362 358
        }
359

  
360
        if (sessionId != null) {
361
            prop.put("sessionid", sessionId);
362
        }
363 363
        
364 364
        String response = null;
365 365
        try {

Also available in: Unified diff