<s> """<STR_LIT>""" <EOL> ident = '<STR_LIT>' <EOL> from version import __version__ <EOL> import re <EOL> import socket <EOL> import sys <EOL> import SocketServer <EOL> from types import * <EOL> import BaseHTTPServer <EOL> from Parser import parseSOAPRPC <EOL> from Config import SOAPConfig <EOL> from Types import faultType , voidType , simplify <EOL> from NS import NS <EOL> from SOAPBuilder import buildSOAP <EOL> from Utilities import debugHeader , debugFooter <EOL> try : from M2Crypto import SSL <EOL> except : pass <EOL> from Server import * <EOL> from pyGlobus . io import GSITCPSocketServer , ThreadingGSITCPSocketServer <EOL> from pyGlobus import ioc <EOL> def GSIConfig ( ) : <EOL> config = SOAPConfig ( ) <EOL> config . channel_mode = ioc . GLOBUS_IO_SECURE_CHANNEL_MODE_GSI_WRAP <EOL> config . delegation_mode = ioc . GLOBUS_IO_SECURE_DELEGATION_MODE_FULL_PROXY <EOL> config . tcpAttr = None <EOL> config . authMethod = "<STR_LIT>" <EOL> return config <EOL> Config = GSIConfig ( ) <EOL> class GSISOAPServer ( GSITCPSocketServer , SOAPServerBase ) : <EOL> def __init__ ( self , addr = ( '<STR_LIT:localhost>' , <NUM_LIT> ) , <EOL> RequestHandler = SOAPRequestHandler , log = <NUM_LIT:0> , <EOL> encoding = '<STR_LIT>' , config = Config , namespace = None ) : <EOL> if encoding != None : <EOL> '<STR_LIT>' . encode ( encoding ) <EOL> self . namespace = namespace <EOL> self . objmap = { } <EOL> self . funcmap = { } <EOL> self . encoding = encoding <EOL> self . config = config <EOL> self . log = log <EOL> self . allow_reuse_address = <NUM_LIT:1> <EOL> GSITCPSocketServer . __init__ ( self , addr , RequestHandler , <EOL> self . config . channel_mode , <EOL> self . config . delegation_mode , <EOL> tcpAttr = self . config . tcpAttr ) <EOL> def get_request ( self ) : <EOL> sock , addr = GSITCPSocketServer . get_request ( self ) <EOL> return sock , addr <EOL> class ThreadingGSISOAPServer ( ThreadingGSITCPSocketServer , SOAPServerBase ) : <EOL> def __init__ ( self , addr = ( '<STR_LIT:localhost>' , <NUM_LIT> ) , <EOL> RequestHandler = SOAPRequestHandler , log = <NUM_LIT:0> , <EOL> encoding = '<STR_LIT>' , config = Config , namespace = None ) : <EOL> if encoding != None : <EOL> '<STR_LIT>' . encode ( encoding ) <EOL> self . namespace = namespace <EOL> self . objmap = { } <EOL> self . funcmap = { } <EOL> self . encoding = encoding <EOL> self . config = config <EOL> self . log = log <EOL> self . allow_reuse_address = <NUM_LIT:1> <EOL> ThreadingGSITCPSocketServer . __init__ ( self , addr , RequestHandler , <EOL> self . config . channel_mode , <EOL> self . config . delegation_mode , <EOL> tcpAttr = self . config . tcpAttr ) <EOL> def get_request ( self ) : <EOL> sock , addr = ThreadingGSITCPSocketServer . get_request ( self ) <EOL> return sock , addr </s>
